Skip to main content
Tab

BorderWrapper.BorderWidth Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

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>  

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BorderWidth property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also