Try using the cellPress event instead of the change event on DataGrid.
Something like this should be what you want:

<mx:DataGrid dataProvider="{col}" cellPress="trace(event.columnIndex +
event.columnName)" />

-deepa

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason Doyle
Sent: Thursday, February 02, 2006 9:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Get the selected column of a dataGrid

I have been trying to get the column index or name of a selected
column in a dataGrid. I have tried:
dataGridName.getCellIndex().columnIndex and
event.target.getCellIndex().columnIndex in a change event but that
doesnt work. Any ideas?





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to