ASPxGridViewBehaviorSettings Class
Provides behavior options for ASPxGridViews.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Related API Members
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
Web Forms (in markup):
<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
Inheritance
See Also