DataGridViewColumn.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 current width of the column.
public:
property int Width { int get(); void set(int value); };
public int Width { get; set; }
member this.Width : int with get, set
Public Property Width As Integer
Property Value
The width, in pixels, of the column. The default is 100.
Exceptions
The specified value when setting this property is greater than 65536.
Examples
The following code example sets the width of a column. This code example is part of a larger example provided for the