Changing the Data Grid selection color, rollover color in Flex

Hi All,

As data grid comes with default color settings, So sometime if we want to change the color according to application UI needs.  Then below example shows how to set the roll over color and selection color in a DataGrid control in Flex by setting the rollOverColor  and selectionColor styles.

<DataGrid id=”dataGrid”

DataGridColumn dataField=”c1″
headerText=”Column 1:” />
DataGridColumn dataField=”c2″
headerText=”Column 2:” />

Hope this helps.

R Vashi.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.