Tab

ASPxGridViewBehaviorSettings Class

Provides behavior options for ASPxGridViews.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public class ASPxGridViewBehaviorSettings :
    ASPxGridBehaviorSettings

The following members accept/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

Web Forms (declaratively):

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

Web Forms (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