DataGridViewColumn.CellType Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the run-time type of the cell template.

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

public Type CellType { get; }

Property Value

Type: System.Type

The Type of the DataGridViewCell used as a template for this column. The default is null.

The base type of the CellTemplate is DataGridViewCell. Use this property to determine the actual derived type.

.NET Framework
Available since 2.0
Return to top