Back to Devexpress

ASPxGridViewBehaviorSettings Class

aspnet-devexpress-dot-web-6ca11289.md

latest2.9 KB
Original Source

ASPxGridViewBehaviorSettings Class

Provides behavior options for ASPxGridViews.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ASPxGridViewBehaviorSettings :
    ASPxGridBehaviorSettings
vb
Public Class ASPxGridViewBehaviorSettings
    Inherits 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

Web Forms (in markup):

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

Web Forms (in code):

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

MVC:

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

Implements

IStateManager

Inheritance

Object StateManager PropertiesBase ASPxGridSettingsBase ASPxGridBehaviorSettings ASPxGridViewBehaviorSettings BootstrapGridViewBehaviorSettings

MVCxGridViewBehaviorSettings

See Also

ASPxGridViewBehaviorSettings Members

SettingsBehavior

Grid View

DevExpress.Web Namespace