Hi
------- MXML Part -----------
<mx:DataGrid dataProvider="{dataArr}" headerRelease="onHeaderRelease
(event)">
<mx:columns>
<mx:DataGridColumn headerText="Name" dataField="name" />
<mx:DataGridColumn headerText="Email" dataField="email"
/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
------ AS Part --------------
private function onHeaderRelease (event : DataGridEvent) : void
{
var dg : DataGrid = event.currentTarget as DataGrid;
var objDGC : DataGridColumn =
dg.columns[event.columnIndex];
Alert.show( objDGC.headerText );
}
may help you
With Regards,
Virat Patel
On Jun 26, 5:33 pm, itonflex team <[email protected]> wrote:
> Hi, Friends .
> I have a requirement that i need to get the column
> header text on clicking on column header(headerRelease function).
> Please help me regarding this !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---