I just want to extract data from the selected row.
It would seem this would be a function of a datagrid (it is of THE Datagrid).
But, I cannot find a complete example so far. I have been reading for some time.
Can someone point me to where there might be a visual c example program?
Thank you
There is a difference between a selected row and an active row.
The ActiveRow is off the DisplayLayout object. There is only a maximum of one ActiveRow at any given moment. If you click on a Cell, then the row is the active row.
A SelectedRow would be in the SelectedRows collection.
and how do you determine a selected row at the client end?
Hi neebz
See the following JavaScript example on how to get the selected row(s) at client side:
var gridId = igtbl_getGridById(<The ID of your UltraWebGrid>);var rowId, row;if(igtbl_getLength(gridId.SelectedRows)>0){ for(rowId in gridId.SelectedRows){ row = igtbl_getRowById(rowId); <Your action on the selected row(s) goes here> }}
For further informations about the JavaScript Methods and Properties of the UltraWebGrid look for CSOM (Client Side Object Model) in the help documentation.
RegardsAdrian