ComponentOne True DBGrid for WinForms
Column Footers
Customizing the Grid's Appearance > Captions, Headers, and Footers > 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:

To write code in Visual Basic

Visual Basic
Copy Code
Me.C1TrueDBGrid1.Columns(0).FooterText = "Footer 0"
Me.C1TrueDBGrid1.Columns(1).FooterText = "Footer 1"

To write code in C#

C#
Copy Code
this.c1TrueDBGrid1.Columns[0].FooterText = "Footer 0";
this.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.

See Also