NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGridColumn.Width

Gets or sets the width of the column.

[Visual Basic]
Overridable Public Property Width As Integer
[C#]
public int Width {virtual get; virtual set;}
[C++]
public: __property virtual int get_Width();
public: __property virtual void set_Width(int);
[JScript]
public function get Width() : int;
public function set Width(int);

Property Value

The width of the column in pixels.

Example [Visual Basic]

The following example sets the width of a DataGridColumn to a new value.

[Visual Basic]

Private Sub SetWidth()
   Dim dgc As DataGridColumn
   Set dgc = DataGrid1.GridColumns("id")
   dgc.Width = 500
End Sub

See Also

DataGridColumn Class | DataGridColumn Members | System.WinForms Namespace