DataGridViewColumn Constructor (DataGridViewCell^)

 

Initializes a new instance of the DataGridViewColumn class using an existing DataGridViewCell as a template.

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

public:
DataGridViewColumn(
	DataGridViewCell^ cellTemplate
)

Parameters

cellTemplate
Type: System.Windows.Forms::DataGridViewCell^

An existing DataGridViewCell to use as a template.

This constructor sets the CellTemplate property to the value of the cellTemplate parameter.

.NET Framework
Available since 2.0
Return to top
Show: