Intersoft WebGrid Documentation
How-to: Set text to a specific cell
See Also Send comments on this topic.

Glossary Item Box

When you want to set a text into a cell in WebGrid, you can use SetText function in client side.

This topic will show you how to set WebGrid's cell text.

To set WebGrid's cell text

  1. Drag WebGrid instance into the WebForm.
  2. Add a client side function on your code.
  3. You can set text to a specific cell simply by using:

  4. JavaScript Copy Code
    function SetText()
    {
    var grid = ISGetObject("WebGrid1");
    var row = grid.RootTable.GetRowByKeyValue("SPLIR"); // get WebGridRow object by key value.
    var cells = row.GetCells();

    row.Select();
    cells.GetNamedItem("ContactTitle").SetText("Owner", true); // change contact title cell to Owner
    }

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.