>In a grid's init, why does this work:
>
>THIS.Column2.DynamicForeColor=;"IIF(table.logical,RGB(255,0,0),RGB(0,0,0))"
>(which is taken straight from the developer's guide)
>
>and this doesn't:
>
>THIS.Column2.Enabled=IIF(table.logical,.T.,.F.)
>
>Kevin Payne
Kevin,
Because;
1) DynamicForeColor is a dynamic property whose expression is evaluated for each row and Enables is not dynamic.
2) The expression you assign to the dynamicforecolor is "IIF(...)" while the assignment to Enmabled is the result of the IIF() function being evaluated.