I have a simple datagrid that allows columns to be moved. I want to perform an action only when say the mydate column is clicked.
I can trap the click event, no issue there. I can test what column index is clicked, but thats pointless as the columns are not locked and can be moved arround so the column index changes.
If you have the index, you look it up in the DataGrid's columns array.
var columnList:Array = new Array();
var dataGridColumn:AdvancedDataGridColumn = new AdvancedDataGridColumn();
//fetching the colums to array
columnList = advDGUsers.columns;
//retrieve first column
dataGridColumn = columnList;
Now "dataGridColumn" holds the first colum of the datagrid, I am unable to access the Id of the particular column.
any help would be appreciated.