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 list, even if it is underpopulated.
For each C1DataColumn object, the FooterText property determines the text that is displayed within the footer row. You can set the footer text using the C1List Designer or by manipulating the C1DataColumnCollection collection in code, as in the following example:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1List1.ColumnFooters = True Me.C1List1.Columns(0).FooterText = "Footer 0" Me.C1List1.Columns(1).FooterText = "Footer 1" |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1List1.ColumnFooters = true; this.c1List1.Columns[0].FooterText = "Footer 0"; this.c1List1.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.