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.v20.2.dll
NuGet Package: DevExpress.Web
Declaration
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 Controls and MVC Extensions | ASPxGridView |
|
GridViewProperties |
|
|
ASP.NET Bootstrap Controls | BootstrapGridView |
|
ASP.NET MVC Extensions | GridViewSettings |
|
GridViewSettings<RowType> |
|
|
MVCxGridView |
|
|
MVCxGridViewProperties |
|
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.