I do something along these lines:
* add an itemClick listener to the datagrid, in the handler for that
event you can access event.columnIndex
* with that you can do something like -
myGrid.selectedItem[myGrid.columns[event.columnIndex].dataField]
 
 
 

        -----Original Message-----
        From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram
        Sent: Tuesday, June 05, 2007 11:17 AM
        To: flexcoders@yahoogroups.com
        Subject: [flexcoders] DataGrid: Get current column index
        
        

        

        Hi, if I register for the mouse down event in a data grid, I can
use the following function to get the selected row:

        

        dataGrid.selectedItem

        

        How can I find out the actual column that was clicked, so I can
index into the selected item's object and retrieve the individual field,
rather than the complete object.

        

        

        Thanks,

        

        Mark

        

        

        

        

         

Reply via email to