Intersoft WebGrid Documentation
How-to: Get a cell by index
See Also Send comments on this topic.

Glossary Item Box

Use wgGetCellByPosition function to get WebGrid cell by index position in client side.

This topic will show you how to get WebGrid's cell using wgGetCellByPosition.

To get WebGrid's cell by index

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

  4. JavaScript Copy Code
    function GetCell()
    {
    var grid = ISGetObject("WebGrid1");
    var wgRow = grid.RootTable.GetRow(0);
    var htmlRow = wgRow.GetElement();
    alert(wgGetCellByPosition(htmlRow, 1).innerText);
    return true;
    }

 

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.