Skip to main content
A newer version of this page is available. .
Tab

BorderWrapper.BorderWidth Property

Gets or sets the border width for all the four sides of a control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

[DefaultValue(typeof(Unit), "")]
public override Unit BorderWidth { get; set; }

Property Value

Type Default Description
Unit String.Empty

A Unit that represents the border width.

Remarks

Use the BorderWidth property to specify the border width for all the four sides of a control.

This property is set with a Unit object. If the Value property of the Unit contains a negative number, an exception is thrown.

<dx:ASPxGridView ID="gridView" runat="server" ...>  
    <Styles>  
        <Cell>  
            <Border BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" />  
        </Cell>  
    </Styles>  
    <Columns>  
        ...  
    </Columns>  
</dx:ASPxGridView>  
See Also