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);
The width of the column in pixels.
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
DataGridColumn Class | DataGridColumn Members | System.WinForms Namespace