RadGrid for ASP.NET

Selecting grid items Send comments on this topic.

Glossary Item Box

Single-row Selection

Telerik RadGrid supports client-side selection of rows. You just need to enable the AllowRowSelect property. Then you will be able to select a row by just clicking on one of its cells. However you will not be able to select the Header, Footer or Pager rows. By default the row selection is turned off (AllowRowSelect is false).

Below is an example of a selected row:

selected row

 

The style of the selected row is defined by the SelectedItemStyle property.

Example:

Copy Code
// declaration
<rad:RadGrid runat="server" ... />
<SelectedItemStyle BackColor="Blue" ... />
Copy Code
// code
...
RadGrid RadGrid1 = new RadGrid();
RadGrid1.SelectedItemStyle.BackColor = Color.Blue;
...