Gets or sets the display value for the current cell.
[Visual Basic]
Public Property Text As String
[C#]
public string Text {get;set;}
[Delphi]
public property Text: String read get_Text write set_Text;
Remarks
The value returned by the Text property is derived from the underlying data value by applying the formatting as specified by the NumberFormat property of the C1DataColumn object.
When the Text property is set for a formatted column, the underlying data value cannot be derived, and the Text and ValueItem.Value properties will subsequently return the same result.
Use the ValueItem.Value property to access the underlying data value in a column for the current row.
Example
The following code uses the Text property to assign the display value for the current cell:
Me.C1TrueDBGrid1.Columns(0).Text = "Name"
· C#
this.c1TrueDBGrid1.Columns[0].Text = "Name";
· Delphi
Self.C1TrueDBGrid1.Columns[0].Text := 'Name';
See Also
C1DataColumn Class | C1DataColumn Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |