How can i grayout a DataGrid?
I am working on flex, i simpl开发者_JAVA百科y need to grayout dataGrid. but could not find any direct control for it. Pls help.
Thanks in advance.
Maybe you need to disable your DataGrid
using:
myDG.enabled = false;
?
As far as your question isn't any clear I can suggest another thing to use mx.printing.PrintDataGrid
(more details here).
Try this to differentiate datagrid rows by different colors: you can also use more than 2 color parameters.
<mx:DataGrid alternatingItemColors="[0xfffffff, 0xe4e4e4]" >
...
...
</mx:DataGrid>
精彩评论