Tab

ASPxGridViewResizingSettings Class

Provides settings that affect the grid resizing functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public class ASPxGridViewResizingSettings :
    ASPxGridSettingsBase

The following members accept/return ASPxGridViewResizingSettings objects:

Library Related API Members
ASP.NET Controls and MVC Extensions ASPxGridView.SettingsResizing
GridViewProperties.SettingsResizing
ASP.NET MVC Extensions GridViewSettings.SettingsResizing
MVCxGridViewProperties.SettingsResizing

Remarks

An object of the ASPxGridViewResizingSettings type can be accessed via the ASPxGridView.SettingsResizing property.

Concept

Resize Columns

Example

Web Forms (declaratively):

<dx:ASPxGridView ID="grid" runat="server" DataSourceID="CustomersDataSource" KeyFieldName="CustomerID" Width="600">
    <Columns>
        ...
    </Columns>
    <SettingsResizing ColumnResizeMode="NextColumn" />
</dx:ASPxGridView>

Web Forms (in code):

grid.SettingsResizing.ColumnResizeMode = ColumnResizeMode.NextColumn;

MVC:

@Html.DevExpress().GridView(settings => {
    settings.Name = "grid";
    settings.SettingsResizing.ColumnResizeMode = ColumnResizeMode.NextColumn;
    ...
}).Bind(Model).GetHtml()

Online Demos

Implements

Inheritance

See Also