We have a webgrid which the user can highlight a row in. We want to get the selected row in order to grab the row ID when the user clicks a command button on the same page.
We have tried activerow and the selected flag but they never return anythign even though a row is highlighted.
Any ideas how to do this?
In what event handler are you trying this?
Hello,
I have a couple of suggestions.
1. Check if CellClickActionDefault="RowSelect" in the DisplayLayout section of the grid
2. This could very well be a page lifecycle issue, e.g. at the point of checking for selected row the grid could already be boumd with new data. Rebinding the grid essentially clears all information, including selected row.