System.Web.UI.WebControls.WebControl.BorderWidth Property

Gets or sets the border width of the Web server control.


[System.ComponentModel.DefaultValue(typeof(System.Web.UI.WebControls.Unit), "")]
public virtual Unit BorderWidth { set; get; }


Documentation for this section has not yet been entered.


Use the WebControl.BorderWidth property to specify a border width for a control.


This property does not work with all Web server controls. It applies only to controls that display as a table, such as System.Web.UI.WebControls.Table and System.Web.UI.WebControls.DataGrid.

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


The border width can be expressed only in pixels for browsers earlier than Microsoft Internet Explorer version 5. All unit types are supported in Microsoft Internet Explorer version 5 and later. Refer to the specific control for details.


Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0,