ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.GroupFooterStyle Property

Gets or sets the Style used to render the cell in the grouped footer row.

[Visual Basic]

Public Property GroupFooterStyle As C1.Win.C1TrueDBGrid.Style

[C#]

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

[Delphi]

public property GroupFooterStyle: C1.Win.C1TrueDBGrid.Style read get_GroupFooterStyle write set_GroupFooterStyle;

Example

The following code sets a navy gradient background in the group footer when the First column is dragged into the grouping area:

·      Visual Basic

       Me.C1TrueDBGrid1.Columns("First").GroupInfo.Position = C1.Win.C1TrueDBGrid.GroupPositionEnum.HeaderAndFooter

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns("First").GroupFooterStyle.BackColor = Color.Navy

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns("First").GroupFooterStyle.GradientMode = C1.Win.C1TrueDBGrid.GradientModeEnum.BackwardDiagonal

·      C#

       this.c1TrueDBGrid1.Columns["First"].GroupInfo.Position = C1.Win.C1TrueDBGrid.GroupPositionEnum.HeaderAndFooter;

       this.c1TrueDBGrid1.Splits[0].DisplayColumns["First"].GroupFooterStyle.BackColor = Color.Navy;

       this.c1TrueDBGrid1.Splits[0].DisplayColumns["First"].GroupFooterStyle.GradientMode = C1.Win.C1TrueDBGrid.GradientModeEnum.BackwardDiagonal;

·      Delphi

       Self.C1TrueDBGrid1.Columns['First'].GroupInfo.Position := C1.Win.C1TrueDBGrid.GroupPositionEnum.HeaderAndFooter;

       Self.C1TrueDBGrid1.Splits[0].DisplayColumns['First'].GroupFooterStyle.BackColor := Color.Navy;

       Self.C1TrueDBGrid1.Splits[0].DisplayColumns]['First'].GroupFooterStyle.GradientMode := C1.Win.C1TrueDBGrid.GradientModeEnum.BackwardDiagonal;

See Also

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


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