Avoiding the Headers in DataGrid Control of Flex.

In an App When used a DataGrid control the Headers values are shown by default and to avoid it there is a property called showHeaders and the default valuse is “true” ,so to disable the headers set it to false. like: showHeaders=”false”

Thats it the headers are gone..

code Example:

<mx:DataGrid x=”98″ y=”212″ id=”dgcolor” showHeaders=”false”>
<mx:DataGridColumn headerText=”Column 1″ />
<mx:DataGridColumn headerText=”Column 2″ />

The difference is visible..


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: