How do I get value of cell in column 3 of the selected dataGrid row?
For example, if someone selects a cell in row 2 of column 0, how can I get the value of the cell in column 3 of the same row?
I know how to get the value of a selected cell, I just can’t figure out how to do the above. I’m using the following for that.
var myCellListener = new Object();
myCellListener.cellPress = function(event) {
var cell = “(” + event.columnIndex + ", " + event.itemIndex + “)”;
var name = event.target.columnNames[event.columnIndex];
var item = event.target.dataProvider.getItemAt(event.itemInde x)[name];
_root.testText = "Value clicked: " + item + " _ " + “The cell at " + cell + " has been clicked”;
}