ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Column Footers

Just as the ColumnHeaders property controls the display of column captions, the ColumnFooters property controls the display of the column footer row. Column footers, which are similar in appearance to column headers, are always displayed at the bottom of the grid, even if it is under populated.

For each C1DataColumn object, the FooterText property determines the text that is displayed within the footer row. Set the footer text in the designer using the C1TrueDBGrid Designer, or in code by manipulating the C1DataColumnCollection collection, as in the following example:

·      Visual Basic

Me.C1TrueDBGrid1.Columns(0).FooterText = "Footer 0"

Me.C1TrueDBGrid1.Columns(1).FooterText = "Footer 1"

·      C#

this.c1TrueDBGrid1.Columns[0].FooterText = "Footer 0";

this.c1TrueDBGrid1.Columns[1].FooterText = "Footer 1";

·      Delphi

Self.C1TrueDBGrid1.Columns[0].FooterText := 'Footer 0';

Self.C1TrueDBGrid1.Columns[1].FooterText := 'Footer 1';

Unlike the Caption property, the FooterText property is not set automatically from a bound data source, so you will have to set it yourself.


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