Intersoft WebGrid Documentation
How-to: Get a specific cell's text of a selected row
See Also Send comments on this topic.

Glossary Item Box

You can get a specific cell's text of selected row in client side.

This topic will show you how to get WebGrid's cell of selected row in WebGrid.

To get a specific cell of a selected row in WebGrid

  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 specific cell by simply using:

  5. JavaScript Copy Code
    function Button1_onclick() 
    {
    var grid = ISGetObject("WebGrid1");
    var row = grid.GetSelectedObject().GetRowObject();
    var cells = row.GetCells();
    alert(cells.GetNamedItem("ProductName").Text);
    }

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.