Back to Devexpress

ASPxGridViewBehaviorSettings.AllowSelectSingleRowOnly Property

aspnet-devexpress-dot-web-dot-aspxgridviewbehaviorsettings-492c9752.md

latest3.6 KB
Original Source

ASPxGridViewBehaviorSettings.AllowSelectSingleRowOnly Property

Specifies the selection mode (single or multiple).

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool AllowSelectSingleRowOnly { get; set; }
vb
<DefaultValue(False)>
Public Property AllowSelectSingleRowOnly As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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.

aspx
<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

ASPxGridViewBehaviorSettings Class

ASPxGridViewBehaviorSettings Members

DevExpress.Web Namespace