ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.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 C1TrueDBDropdown:

·      Visual Basic

       Me.C1TrueDBDropdown1.HeadingStyle.BackColor = Color.Black

       Me.C1TrueDBDropdown1.HeadingStyle.ForeColor = Color.White

·      C#

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

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

·      Delphi

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

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

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

See Also

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


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