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

Glossary Item Box

Use wgGetRowByPosition function to get WebGrid row using index in client side.

This topic will show you how to get WebGrid's row using wgGetRowByPosition.

To get WebGrid's row 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 row by index simply by using:

  4. JavaScript Copy Code
    function GetRowElement()
    {  
       var grid = ISGetObject("WebGrid1");   
       var htmlTbl = grid.RootTable.GetElement(WG40.BODY, WG40.HTMLTABLE);     
       var htmlRowElm = wgGetRowByPosition(htmlTbl, 0);   
       alert(htmlRowElm.type);   
       return true;
    }
    

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.