alexandre_lab
03-22-2005, 02:45 PM
hello boyz and girlz,
i'm trying to go through each cell of a dataGrid component.
any idea how to loop through it ?
i tried this:
for (i=0; i<myDataGrid.columnCount; i++) {
thisColumnNumRows = myDataGrid.getColumnAt(i).rowCount;
trace("\n column n° "+i+" a "+thisColumnNumRows+" rows.");
for (j=0; j<thisColumnNumRows; j++) {
trace ("my cell is col:"+i+" and row : "+j+"\n");
}
}
it works for the columns but not for the rows...
any idea ?
i'm trying to go through each cell of a dataGrid component.
any idea how to loop through it ?
i tried this:
for (i=0; i<myDataGrid.columnCount; i++) {
thisColumnNumRows = myDataGrid.getColumnAt(i).rowCount;
trace("\n column n° "+i+" a "+thisColumnNumRows+" rows.");
for (j=0; j<thisColumnNumRows; j++) {
trace ("my cell is col:"+i+" and row : "+j+"\n");
}
}
it works for the columns but not for the rows...
any idea ?