DataGridViewButtonColumn Constructor ()

 

Initializes a new instance of the DataGridViewButtonColumn class to the default state.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public DataGridViewButtonColumn()

This constructor initializes the column by setting the following properties.

Property

Value

CellTemplate

A new DataGridViewButtonCell.

The Alignment property of the DataGridViewCellStyle object returned by the DefaultCellStyle property.

DataGridViewContentAlignment.MiddleCenter

.NET Framework
Available since 2.0
Return to top
Show: