IModelColumn.Width Property
Specifies the width of the current column, in pixels.
Namespace: DevExpress.ExpressApp.Model
Assembly: DevExpress.ExpressApp.v20.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
Int32 | An integer value specifying the current column width in pixels. |
Remarks
WinForms UI
Column width in XtraGrid is controlled by the GridOptionsView.ColumnAutoWidth property, so actual column width can differ from the Width property value.
ASP.NET WebForms UI
In ASP.NET Web XAF applications, this property has no effect because the web browser determines column widths based on the styles defined in the current theme and displayed content.
Blazor UI
Use the Width property to set a data grid column width. This property value is passed to the actual Blazor GridControl’s DxDataColumnBase.Width property.
You can set the ColumnResizeMode property to NextColumn
or Component
in the DataGrid component settings to allow users to resize columns.