Skip to main content
A newer version of this page is available. .
Tab

ASPxGridViewBehaviorSettings.AllowSelectByRowClick Property

Gets or sets a value that specifies whether selection via row clicks is available within the ASPxGridView.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(false)]
public bool AllowSelectByRowClick { get; set; }

Property Value

Type Default Description
Boolean **false**

true if selection via row clicks is available; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AllowSelectByRowClick
ASP.NET Bootstrap Controls BootstrapGridView
.SettingsBehavior.AllowSelectByRowClick
ASP.NET Web Forms Controls ASPxGridView
.SettingsBehavior.AllowSelectByRowClick
GridViewProperties
.SettingsBehavior.AllowSelectByRowClick
GridViewSettings
.SettingsBehavior.AllowSelectByRowClick
GridViewSettings<RowType>
.SettingsBehavior.AllowSelectByRowClick
MVCxGridView
.SettingsBehavior.AllowSelectByRowClick
MVCxGridViewProperties
.SettingsBehavior.AllowSelectByRowClick

Remarks

In addition to a command column’s check boxes, the ASPxGridView provides an easy way to select single or multiple rows simply by clicking them. To enable this mode, set the AllowSelectByRowClick property to true.

When the AllowSelectByRowClick is enabled, clicking any row clears the previous selection and selects this row.

To select multiple rows, click them while holding down the CTRL key. Clicking a row in this manner toggles its selected state and preserves the selection. To select contiguous rows, click the first row you want to select. Then, hold down the SHIFT key and click the last row. You can continue to customize the selection by clicking individual rows while holding down the CTRL key.

Note

Multiple row selection is available if the ASPxGridViewBehaviorSettings.AllowSelectSingleRowOnly property is disabled.

Note

For ASPxGridLookup, the AllowSelectByRowClick property is always set to true by design, making selection via row clicks always available. So, setting the AllowSelectByRowClick property to false is not in effect for ASPxGridLookup.

See Also