aspnet-devexpress-dot-web-dot-aspxgridviewbehaviorsettings-492c9752.md
Specifies the selection mode (single or multiple).
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(false)]
public bool AllowSelectSingleRowOnly { get; set; }
<DefaultValue(False)>
Public Property AllowSelectSingleRowOnly As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to enable single row selection; false to enable multiple row selection.
|
You can access this nested property as listed below:
| Object Type | Path to AllowSelectSingleRowOnly |
|---|---|
| ASPxGridView |
.SettingsBehavior .AllowSelectSingleRowOnly
| | GridViewProperties |
.SettingsBehavior .AllowSelectSingleRowOnly
|
The AllowSelectSingleRowOnly property is in effect when row selection is enabled. To enable row selection, specify one of the following properties:
When the checkbox selection mode is enabled (the ShowSelectCheckbox property is set to true), the AllowSelectSingleRowOnly property defines the editor type (check box or radio button) within the command column cells.
<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="EmployeeID" >
<SettingsBehavior AllowSelectSingleRowOnly="true"/>
<Columns>
<dx:GridViewCommandColumn VisibleIndex="0" ShowSelectCheckbox="true" />
<%--...--%>
</Columns>
</dx:ASPxGridView>
When cell merge is enabled, ASPxGridView does not support row selection.
When the AllowSelectSingleRowOnly property is set to true, the SelectAllCheckboxMode is not in effect.
For a grid within the ASPxGridLookup control, the AllowSelectSingleRowOnly property synchronizes its value with the ASPxGridLookup.SelectionMode property value.
See Also
ASPxGridViewBehaviorSettings Class