Use GetSelectedRow function to get selected row in WebGrid via client side.
This topic will show you how to get WebGrid's selected row object using GetSelectedRow function.
To get WebGrid selected row
- Drag WebGrid instance into the WebForm.
- Add a client side function on your code.
- Select a row.
- You can get the grid's selected row by simply using:
-
JavaScript Copy Code var grid = ISGetObject("WebGrid1"); var selectedObject = grid.GetSelectedObject().GetRowObject();
Other Resources
Walkthrough Topics
How-to Topics