ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

GridBorders.Color Property

Gets or sets the color of the border.

[Visual Basic]

Public Property Color As Color

[C#]

public Color Color {get;set;}

[Delphi]

public property Color: Color read get_Color write set_Color;

Example

The following example sets the color of the border:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns(Me.C1TrueDBGrid1.Col).Style.Borders.Color = Color.Blue

·      C#

       this.c1TrueDBGrid1.Splits[0].DisplayColumns[this.c1TrueDBGrid1.Col].Style.Borders.Color = Color.Blue;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].DisplayColumns[Self.C1TrueDBGrid1.Col].Style.Borders.Color := Color.Blue;

For an example using the Color property, see Tutorial 22 - Borders, Scroll Tracking, and Scroll Tips.

See Also

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


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