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
- Drag WebGrid instance into the WebForm.
- Add a client side function on your code.
- You can set text to a specific cell simply by using:
-
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
}
Other Resources
Walkthrough Topics
How-to Topics