Skip to main content
A newer version of this page is available. .
Tab

ASPxGridViewBehaviorSettings Class

Provides behavior options for ASPxGridViews.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public class ASPxGridViewBehaviorSettings :
    ASPxGridBehaviorSettings

The following members return ASPxGridViewBehaviorSettings objects:

Remarks

The ASPxGridViewBehaviorSettings class provides a set of Boolean properties that control the ASPxGridView’s behavior. Use the ASPxGridView.SettingsBehavior property to access the grid’s behavior settings.

Example

WebForms (declaratively):

<dx:ASPxGridView ID="ASPxGridView1" runat="server" ...>
    ...
    <SettingsBehavior AllowDragDrop="false" AllowGroup = "false" />
</dx:ASPxGridView>

WebForms (in code):

ASPxGridView grid1 = new ASPxGridView();
grid1.ID = "grid1";
Page.Form.Controls.Add(grid1);
...
grid1.SettingsBehavior.AllowDragDrop = DevExpress.Utils.DefaultBoolean.False;
grid1.SettingsBehavior.AllowGroup = false;

MVC:

@Html.DevExpress().GridView(settings => {
    settings.Name = "grid";
    settings.SettingsBehavior.AllowDragDrop = DevExpress.Utils.DefaultBoolean.False;
    settings.SettingsBehavior.AllowGroup = false;
    ...
}).Bind(Model).GetHtml()

Implements

See Also