Skip to main content

WebColumnBase.Width Property

Gets or sets the column’s width.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


[DefaultValue(typeof(Unit), "")]
public virtual Unit Width { get; set; }

Property Value

Type Default Description
Unit String.Empty

A Unit structure that represents the column’s width.


The Width property specifies the width for the WebColumnBase class’s derived objects. The WebColumnBase class serves as a base class for the following objects:

  • Web Forms and MVC Grid-like components’ columns.
  • Gantt columns.
  • ListBox columns.
  • and others.


It is recommended that you specify the Width property in pixels or percentage to ensure grid columns’ correct render. In certain scenarios (for example, the use of the Min or Max column widths) the grid’s internal calculation algorithm may calculate the column width incorrectly if you specify column widths in other units (em, pt and others).



<dx:ASPxGridView ID="Grid" runat="server" >
        <dx:GridViewDataColumn FieldName="ContactName" Width="150" FixedStyle="Left" />
        <dx:GridViewDataColumn FieldName="CompanyName" Width="180" FixedStyle="Left" />
        <dx:GridViewDataColumn FieldName="City" Width="130" />


<dx:ASPxListBox ID="lbModels" runat="server" ...>
        <dx:ListBoxColumn FieldName="Name" Caption="Model" Width="100%" />
        <dx:ListBoxColumn FieldName="Price" Width="50px" />
See Also