ASPxGridViewBehaviorSettings.AllowSelectSingleRowOnly Property
Specifies the selection mode (single or multiple).
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
Property Paths
You can access this nested property as listed below:
Object Type | Path to AllowSelectSingleRowOnly |
---|---|
ASPxGridView |
|
GridViewProperties |
|
Remarks
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>
Limitations
When cell merge is enabled, ASPxGridView does not support row selection.
When the
AllowSelectSingleRowOnly
property is set totrue
, 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.