ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DataColumn.Tag Property

Gets or sets a user defined objects associated with this column.

[Visual Basic]

Public Property Tag As Object

[C#]

public object Tag {get;set;}

[Delphi]

public property Tag: Object read get_Tag write set_Tag;

Remarks

Unlike other properties, the value of the Tag property is not used by the grid.

Example

The following code sets user defined text with the Country column:

·      Visual Basic

       Me.C1TrueDBGrid1.Columns("Country").Tag = "Country where the composer was born."

·      C#

       this.c1TrueDBGrid1.Columns["Country"].Tag = "Country where the composer was born.";

·      Delphi

       Self.C1TrueDBGrid1.Columns['Country'].Tag := 'Country where the composer was born.';

See Also

C1DataColumn Class | C1DataColumn Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.