Intersoft WebGrid Documentation
How-to: Clear selected object
See Also Send comments on this topic.

Glossary Item Box

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

  1. Drag WebGrid instance into the WebForm.
  2. Add a client side function on your code.
  3. Select a row.
  4. You can clear grid's selected object by simply using:

  5. JavaScript Copy ImageCopy 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;
    }

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.