Export (0) Print
Expand All

DataGridViewCell.Tag Property

Gets or sets the object that contains supplemental data about the cell.

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

[BindableAttribute(true)]
[TypeConverterAttribute(typeof(StringConverter))]
public Object Tag { get; set; }

Property Value

Type: System.Object
An Object that contains data about the cell. The default is null.

Any type derived from the Object class can be assigned to this property. The Tag property is commonly used to store data that is closely associated with the value displayed by the cell.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft