WebGrid provides features to select a row from server side.
In this topic, you will learn the basic thing on how to select a row from server side.
To Select a row from Server side
- Add following codes inside the InitializeRow event handler.
C# Copy Code private void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e) { string customerID = e.Row.Cells.GetNamedItem("CustomerID").Text; if(customerID == "BLONP") { WebGrid1.SetFocus(); e.Row.Selected = true; } }
- Compile and run the WebForm.
Tasks
Walkthrough: Using ExpandChildRow to expand child tables
References
InitializeRow Event
Other Resources
Walkthrough Topics
How-to Topics