Use ClearSelectedObject function to clear WebGrid selected object in client side.
This topic will show you how to clear WebGrid's selected object.
To clear WebGrid's selected object
- Drag WebGrid instance into the WebForm.
- Add a client side function on your code.
- Select a row.
- You can clear grid's selected object by simply using:
-
JavaScript Copy Code function ClearSelectedObj()
{
var grid = ISGetObject('WebGrid1');
grid.ClearSelectedObject();
grid.Refresh(); // To refresh the grid in order to remove the selected object highlight
return true;
}
Other Resources
Walkthrough Topics
How-to Topics