System.Windows.Forms.DataGridViewColumn.CellTemplate Property

Gets or sets the template used to create new cells.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ComponentModel.Browsable(false)]
public virtual DataGridViewCell CellTemplate { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The constructors for the System.Windows.Forms.DataGridViewColumn class initialize this property. The default constructor sets the property to null; the other constructor copies the cell template from its parameter.

Note:

Changing the properties of the cell template will not immediately affect the user interface (UI) of the column's existing cells. These changes are only apparent after the column is regenerated (for example, by sorting the column or through a call to the DataGridView.InvalidateColumn(int) method).

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0