Skip to main content
Tab

ASPxGridViewBehaviorSettings.AllowSelectSingleRowOnly Property

Specifies the selection mode (single or multiple).

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

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

Property Value

Type Default Description
Boolean false

true to enable single row selection; false to enable multiple row selection.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowSelectSingleRowOnly
ASPxGridView
.SettingsBehavior .AllowSelectSingleRowOnly
GridViewProperties
.SettingsBehavior .AllowSelectSingleRowOnly

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.

ASPxGridView - SelectSingleRow

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="EmployeeID" >
    <SettingsBehavior AllowSelectSingleRowOnly="true"/>
    <Columns>
        <dx:GridViewCommandColumn VisibleIndex="0" ShowSelectCheckbox="true" />
        <%--...--%>
    </Columns>
</dx:ASPxGridView>

Limitations

See Also