ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.Styles Property

Gets the collection of named Style objects.

[Visual Basic]

Public ReadOnly Property Styles As GridStyleCollection

[C#]

public GridStyleCollection Styles {get;}

[Delphi]

public property Styles: GridStyleCollection read get_Styles;

Example

The following code applies a black background and white foreground to the headers of the grid:

·      Visual Basic

       Me.C1TrueDBGrid1.HeadingStyle.BackColor = Color.Black

       Me.C1TrueDBGrid1.HeadingStyle.ForeColor = Color.White

·      C#

       this.c1TrueDBGrid1.HeadingStyle.BackColor = Color.Black;

       this.c1TrueDBGrid1.HeadingStyle.ForeColor = Color.White;

·      Delphi

       Self.C1TrueDBGrid1.HeadingStyle.BackColor := Color.Black;

       Self.C1TrueDBGrid1.HeadingStyle.ForeColor := Color.White;

For additional information on using styles, see How to Use Styles.

See Also

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


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