ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.DataColumn Property

Gets the associated C1DataColumn associated with this object.

[Visual Basic]

Public ReadOnly Property DataColumn As C1DataColumn

[C#]

public C1DataColumn DataColumn {get;}

[Delphi]

public property DataColumn: C1DataColumn read get_DataColumn;

Example

The following code sets the C1DataColumn.NumberFormat property for the Birth column using the DataColumn property:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns("Birth").DataColumn.NumberFormat = "Long Date"

·      C#

       this.c1TrueDBGrid1.Splits[0].DisplayColumns["Birth"].DataColumn.NumberFormat = "Long Date";

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].DisplayColumns["Birth"].DataColumn.NumberFormat := 'Long Date';

See Also

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


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