DataGridView DataGridView DataGridView Constructor

Definition

Initializes a new instance of the DataGridView class.

public:
 DataGridView();
public DataGridView ();
Public Sub New ()

Remarks

The following table shows initial property values for an instance of the DataGridView class.

Property Initial Value
AllowUserToAddRows true
AllowUserToDeleteRows true
AllowUserToOrderColumns false
AllowUserToResizeColumns true
AllowUserToResizeRows true
AutoGenerateColumns true
AutoSizeColumnsMode None
AutoSizeRowsMode None
ClipboardCopyMode EnableWithAutoHeaderText
ColumnHeadersHeightSizeMode EnableResizing
ColumnHeadersVisible true
EditMode EditOnKeystrokeOrF2
MultiSelect true
ReadOnly false
RowHeadersVisible true
RowHeadersWidthSizeMode EnableResizing
SelectionMode RowHeaderSelect

Applies to

See also