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)

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
Available since 2.0
Return to top