ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.GroupStyle Property

Gets or sets the Style object that controls the appearance of grouping area.

[Visual Basic]

Public Property GroupStyle As C1.Win.C1TrueDBGrid.Style

[C#]

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

[Delphi]

public property GroupStyle: C1.Win.C1TrueDBGrid.Style read get_GroupStyle write set_GroupStyle;

Example

The following code uses the GroupStyle property to set the background color to a BackwardDiagonal gradient:

·      Visual Basic

       Me.C1TrueDBGrid1.DataView = C1.Win.C1TrueDBGrid.DataViewEnum.GroupBy

       Me.C1TrueDBGrid1.GroupStyle.GradientMode = C1.Win.C1TrueDBGrid.GradientModeEnum.BackwardDiagonal

·      C#

       this.c1TrueDBGrid1.DataView = C1.Win.C1TrueDBGrid.DataViewEnum.GroupBy;

       this.c1TrueDBGrid1.GroupStyle.GradientMode = C1.Win.C1TrueDBGrid.GradientModeEnum.BackwardDiagonal;

·      Delphi

       Self.C1TrueDBGrid1.DataView := C1.Win.C1TrueDBGrid.DataViewEnum.GroupBy;

       Self.C1TrueDBGrid1.GroupStyle.GradientMode := C1.Win.C1TrueDBGrid.GradientModeEnum.BackwardDiagonal;

See Also

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


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