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

Glossary Item Box

Use wgGetCellByName function to get WebGrid cell by name in client side.

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

To get WebGrid's cell by name

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

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

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.