Skip to main content

ASPxGridViewBehaviorSettings.AllowSelectByRowClick Property

Specifies whether row click selection is enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public bool AllowSelectByRowClick { get; set; }

Property Value

Type Default Description
Boolean false

true to enable row click selection; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowSelectByRowClick
.SettingsBehavior .AllowSelectByRowClick
.SettingsBehavior .AllowSelectByRowClick


Set the AllowSelectByRowClick property to true to enable row click selection. A new row click clears the previous selection and selects the current row.

ASPxGridView supports multiple row selection. A user can select multiple rows as follows:

  • Hold down the Ctrl key and click the rows.
  • Click the first row, hold down the Shift key, and click the last row.

When row selection changes, the control raises the server-side ASPxGridBase.SelectionChanged or the client-side ASPxClientGridView.SelectionChanged event (based on the ProcessSelectionChangedOnServer property value).

Run Demo: ASPxGridView - Use Row Clicks

ASPxGridView - SelectByRowClick

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="EmployeeID">
    <SettingsBehavior AllowSelectByRowClick="true"/>


See Also