I 'm trying this function and I call it in datagrid as selectionListeners =[myListener] but I see which checkbox is selected only when I select the row. I want to see it when I check each box instead. Could you help me find it? And another issue is if there is a way to return a value from mylistener function to use it in another function of the program. Thanks
function myListener(grid DataGrid in)
sysLib.writeStdOut( "in listener");
columnRetrieve Rec[];
columnRetrieve = grid.getChecked() as Rec[];
numberOfRows int = columnRetrieve.getSize();
sysLib.writeStdOut( "number of rows: " + numberOfRows);
if(numberOfRows > 0)
for(i int from 1 to numberOfRows)
sysLib.writeStdOut(columnRetrieve[i].name + " is selected.");
end
end
end
michaeldefox