ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.Style Property

Gets or sets the root Style object.

[Visual Basic]

Public Property Style As C1.Win.C1TrueDBGrid.Style

[C#]

public C1.Win.C1TrueDBGrid.Style Style {get;set;}

[Delphi]

public property Style: C1.Win.C1TrueDBGrid.Style read get_Style write set_Style;

Example

The following code sets the font color to orange and wraps the text within the grid:

·      Visual Basic

       Me.C1TrueDBGrid1.Style.WrapText = True

       Me.C1TrueDBGrid1.Style.ForeColor = Color.Orange

·      C#

       this.c1TrueDBGrid1.Style.WrapText = true;

       this.c1TrueDBGrid1.Style.ForeColor = Color.Orange;

·      Delphi

       Self.C1TrueDBGrid1.Style.WrapText := True;

       Self.C1TrueDBGrid1.Style.ForeColor := Color.Orange;

See Also

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


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