Gets or sets the Style used for the cell editor.
[Visual Basic]
Public Property EditorStyle As C1.Win.C1TrueDBGrid.Style
[C#]
public C1.Win.C1TrueDBGrid.Style EditorStyle {get;set;}
[Delphi]
public property EditorStyle: C1.Win.C1TrueDBGrid.Style read get_EditorStyle write set_EditorStyle;
Example
The following code uses the EditorStyle property to modify the appearance of the cell editor to show the fore color as red:
Dim C As C1.Win.C1TrueDBGrid.C1DisplayColumn
For Each C In Me.C1TrueDBGrid1.Splits(0).DisplayColumns
C.EditorStyle.ForeColor = System.Drawing.Color.Red
Next
· C#
foreach (C1.Win.C1TrueDBGrid.C1DisplayColumn C in this.c1TrueDBGrid1.Splits[0].DisplayColumns)
{
C.EditorStyle.ForeColor = System.Drawing.Color.Red;
}
· Delphi
var
C: C1.Win.C1TrueDBGrid.C1DisplayColumn;
begin
for C in Self.C1TrueDBGrid1.Splits[0].DisplayColumns do
begin
C.EditorStyle.ForeColor := System.Drawing.Color.Red;
end;
end;
See Also
C1DisplayColumn Class | C1DisplayColumn Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |