aspnet-devexpress-dot-web-dot-aspxwebcontrol-27c1fd4e.md
Gets or sets the width of the web server control.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public override Unit Width { get; set; }
Public Overrides Property Width As Unit
| Type | Description |
|---|---|
| Unit |
A Unit that represents the width of the control.
|
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
grid.Width = Unit.Percentage(100);
grid.DataBinding += (sender, e) => {
asp-net-web-forms-implement-pdf-viewer/CS/PdfViewer.ascx.cs#L33
get {
return dvDocument.Width;
}
{
gridLookup.GridView.Width = 500;
}
// 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
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
Get
Return Me.dvDocument.Width
End Get
Protected Sub gridLookup_Init(ByVal sender As Object, ByVal e As EventArgs)
gridLookup.GridView.Width = 500
End Sub
' Set the drop-down editor width.
lookupEdit.GridView.Width = 500
' OR
See Also