ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.FooterStyle Property

Gets or sets the Style object that controls the appearance of column footers.

[Visual Basic]

Public Property FooterStyle As C1.Win.C1TrueDBGrid.Style

[C#]

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

[Delphi]

public property FooterStyle: C1.Win.C1TrueDBGrid.Style read get_FooterStyle write set_FooterStyle;

Example

The following code uses the FooterStyle property to modify the appearance of the column footers, making all footers blue font style with center alignment:

·      Visual Basic

       Dim C As C1.Win.C1TrueDBGrid.C1DisplayColumn

       For Each C In Me.C1TrueDBGrid1.Splits(0).DisplayColumns

           C.FooterStyle.ForeColor = Color.Blue

           C.FooterStyle.HorizontalAlignment = C1.Win.C1TrueDBGrid.AlignHorzEnum.Center

       Next

·      C#

       foreach (C1.Win.C1TrueDBGrid.C1DisplayColumn C in this.c1TrueDBGrid1.Splits[0].DisplayColumns)

       {

           C.FooterStyle.ForeColor = Color.Blue;

           C.FooterStyle.HorizontalAlignment = C1.Win.C1TrueDBGrid.AlignHorzEnum.Center;

       }

·      Delphi

       var

         C: C1.Win.C1TrueDBGrid.C1DisplayColumn;

       begin

         for C in Self.C1TrueDBGrid1.Splits[0].DisplayColumns do

         begin

           C.FooterStyle.ForeColor := Color.Blue;

           C.FooterStyle.HorizontalAlignment := C1.Win.C1TrueDBGrid.AlignHorzEnum.Center;

         end;

       end;

See Also

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


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