Naturally we go for accessing an item in a row from which we can’t tell which column it is being accessed, so for accessing a column in DG control we have to use columnIndex property of a ListEvent.
To see this in action first call a function on itemclick with the property itemClick and the function “itemClickEvent(event)” (itemClick=”itemClickEvent(event)”);
Now define the function with the ListEvent
private function itemClickEvent(event:ListEvent):void
— here we can catch the click of 1st column
— here we can catch the click of 2nd column
now u can use datagrid.selectedItem.datafieldname to get the item of that particular column