Back to Devexpress

ASPxWebControl.Width Property

aspnet-devexpress-dot-web-dot-aspxwebcontrol-27c1fd4e.md

latest4.6 KB
Original Source

ASPxWebControl.Width Property

Gets or sets the width of the web server control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public override Unit Width { get; set; }
vb
Public Overrides Property Width As Unit

Property Value

TypeDescription
Unit

A Unit that represents the width of the control.

|

Remarks

This member overrides the Width property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Width 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.

asp-net-web-forms-popup-use-one-popup-for-entire-application/CS/T501713/WebForm1.aspx.cs#L24

csharp
grid.Width = Unit.Percentage(100);
grid.DataBinding += (sender, e) => {

asp-net-web-forms-implement-pdf-viewer/CS/PdfViewer.ascx.cs#L33

csharp
get {
    return dvDocument.Width;
}

asp-net-web-forms-gridlookup-dropdown-with-grouped-items/CS/DXWebApplication1/MultiColumn.aspx.cs#L14

csharp
{
    gridLookup.GridView.Width = 500;
}

xaf-how-to-display-an-enumeration-property-as-a-drop-down-box-with-check-boxes/CS/E689.Module.Web/Editors/ASPxEnumPropertyEditorEx.cs#L37

csharp
// Set the drop-down editor width.
lookupEdit.GridView.Width = 500;
// OR

asp-net-web-forms-popup-use-one-popup-for-entire-application/VB/T501713/WebForm1.aspx.vb#L24

vb
container.Controls.Add(grid)
grid.Width = Unit.Percentage(100)
AddHandler grid.DataBinding, Sub(sender, e)

asp-net-web-forms-implement-pdf-viewer/VB/PdfViewer.ascx.vb#L38

vb
Get
    Return Me.dvDocument.Width
End Get

asp-net-web-forms-gridlookup-dropdown-with-grouped-items/VB/DXWebApplication1/MultiColumn.aspx.vb#L11

vb
Protected Sub gridLookup_Init(ByVal sender As Object, ByVal e As EventArgs)
    gridLookup.GridView.Width = 500
End Sub

xaf-how-to-display-an-enumeration-property-as-a-drop-down-box-with-check-boxes/VB/E689.Module.Web/Editors/ASPxEnumPropertyEditorEx.vb#L36

vb
' Set the drop-down editor width.
lookupEdit.GridView.Width = 500
' OR

See Also

ASPxWebControl Class

ASPxWebControl Members

DevExpress.Web Namespace