Danneman
07-11-2005, 02:16 AM
Ive got a DataGrid, and Id like to get the value from one of the cells as soon as it has been changed (its editable).
Problem is, I only know how to get ahold of the row-index, and the column-index, but not the data inside the cell.
Anybody knows?
myDataGridListener = new Object();
myDataGridListener.cellEdit = function(event){
var colIndex = event.columnIndex; // gets columnnr
var rowIndex = event.itemIndex; // gets rownr
var myCellsValue = event.?????? // How do I get the value inside this cell?
}
myDataGrid.addEventListener("cellEdit", myDataGridListener);
Problem is, I only know how to get ahold of the row-index, and the column-index, but not the data inside the cell.
Anybody knows?
myDataGridListener = new Object();
myDataGridListener.cellEdit = function(event){
var colIndex = event.columnIndex; // gets columnnr
var rowIndex = event.itemIndex; // gets rownr
var myCellsValue = event.?????? // How do I get the value inside this cell?
}
myDataGrid.addEventListener("cellEdit", myDataGridListener);