ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.Name Property

Gets the caption of the associated C1DataColumn objects.

[Visual Basic]

Public ReadOnly Property Name As String

[C#]

public string Name {get;}

[Delphi]

public property Name: String read get_Name;

Example

In this example, the Name property is used to access the CustomerID column of a bound grid and set its background color to green:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns("CustomerID").Style.BackColor = Color.Green

·      C#

       this.c1TrueDBGrid1.Splits[0].DisplayColumns["CustomerID"].Style.BackColor = Color.Green;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].DisplayColumns['CustomerID'].Style.BackColor := Color.Green;

See Also

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


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