Intersoft WebGrid Documentation
How-to: Access the selected rows in client side and server side
See Also Send comments on this topic.

Glossary Item Box

To get the selected rows in client side, you can use GetCheckedRows() method of a WebGridTable instance. It is the same method used in initial RowChecker feature.

Similarly, to get the selected rows in server side, you use the GetCheckedRows() method of a WebGridTable instance. See following example:

C# Copy ImageCopy Code
protected void button1_Click(object sender, EventArgs e) 
{
Response.Write(WebGrid1.RootTable.GetCheckedRows().Count);
}

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.