Edit this page

Column Footers

Usually the bottom cell of a column is called footer. Its purpose is to display some additional information that applies to the whole column.

To set the value of the footer use Footer property of the column.

<telerik:GridViewDataColumn Header="ID"
                DataMemberBinding="{Binding EmployeeID}"
                Footer="Footer cell" />

Because it is of type object, you are not limited to just using plain text. For example, you can add a corresponding picture to the footer text.

<telerik:GridViewDataColumn Header="ID"
                DataMemberBinding="{Binding EmployeeID}">
  <telerik:GridViewDataColumn.Footer>

    <Grid>
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition />
      </Grid.ColumnDefinitions>
      <Image Stretch="None"
Source="../../Images/User.png"
Margin="0,0,5,0" />
      <TextBlock Text="The Id of the employee"
 VerticalAlignment="Center"
 TextWrapping="Wrap"
 Grid.Column="1" />

    </Grid>
  </telerik:GridViewDataColumn.Footer>
</telerik:GridViewDataColumn>

Showing the Column Footers

By default column footers are hidden, so in order to make them visible you have to set the ShowColumnFooters property to True.

<telerik:RadGridView x:Name="radGridView"
                         ShowColumnFooters="True">
  <!-- ... -->
</telerik:RadGridView>

Aggregates

Column footers are also used to display aggregated information on the data displayed in the column via aggregate functions.

To learn how to do that take a look at the Aggregate Functions topic.

See Also

Was this article helpful? Yes No

Give article feedback

Tell us how we can improve this article

Dummy