Tab
A newer version of this page is available. Switch to the current version.

ASPxGridViewResizingSettings Class

Provides settings that affect the grid resizing functionality.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public class ASPxGridViewResizingSettings :
    ASPxGridSettingsBase
Public Class ASPxGridViewResizingSettings
    Inherits ASPxGridSettingsBase

The following members accept/return ASPxGridViewResizingSettings objects:

Remarks

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

Concept

Resize Columns

Example

WebForms (declaratively):

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

WebForms (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