DataGridColumnStyle.Width Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the width of the column.
public:
virtual property int Width { int get(); void set(int value); };
public virtual int Width { get; set; }
member this.Width : int with get, set
Public Overridable Property Width As Integer
Property Value
The width of the column, in pixels.
Examples
The following code example sets the width of a DataGridColumnStyle to a new value.
Private Sub SetWidth()
Dim dgc As DataGridColumnStyle
dgc = DataGrid1.TableStyles(0).GridColumnStyles("id")
dgc.Width = 500
End Sub
Applies to
See also
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.