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

BorderWrapper.BorderWidth Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(typeof(Unit), "")]
public override Unit BorderWidth { get; set; }
<DefaultValue(GetType(Unit), "")>
Public Overrides Property BorderWidth As Unit

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