Intersoft WebGrid Documentation
How-to: Get the row's KeyValue
See Also Send comments on this topic.

Glossary Item Box

Use keyValue property to get WebGrid keyValue of a selected row in client side.

This topic will show you how to get WebGrid's keyValue.

To get WebGrid's row KeyValue

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

  5. JavaScript Copy Code
    function doRowSelect()
    {
    var webGrid = ISGetObject("WebGrid1");
    var selRow = webGrid.GetSelectedObject().GetRowElement();
    alert(selRow.keyValue);
    }

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.