ComponentOne Grid for WPF: Grid for WPF Appearance > Setting Total Bar Visibility

Setting Total Bar Visibility

The total bar appears at the bottom of the grid and can be used to display sums, averages, and so on. By default the total bar is collapsed and not visible, but you can set the total bar to be visible or hidden through the TotalBarVisibility property.

TotalBarVisibility is set to Collapsed

When the TotalBarVisibility property is set to Collapsed, the total bar appears collapsed and not visible. This is the default setting.

 

In XAML

You can set the TotalBarVisibility property to Collapsed in the Properties window or by adding TotalBarVisibility="Collapsed" to the <c1grid:C1DataGrid> tag so that it looks similar to the following:

<c1grid:C1DataGrid Name="C1DataGrid1" TotalBarVisibility="Collapsed">

In Code

To set the TotalBarVisibility property to Collapsed, add the following code to your project:

      Visual Basic

C1DataGrid1.TotalBarVisibility = Windows.Visibility.Collapsed

      C#

c1DataGrid1.TotalBarVisibility = Windows.Visibility.Collapsed;

TotalBarVisibility is set to Visible

When the TotalBarVisibility property is set to Visible, the total bar is visible on the grid. If you're including totals calculation in your grid, set TotalBarVisibility to Visible.

 

In XAML

You can set the TotalBarVisibility property to Visible in the Properties window or by adding TotalBarVisibility="Visible" to the <c1grid:C1DataGrid> tag so that it looks similar to the following:

<c1grid:C1DataGrid Name="C1DataGrid1" TotalBarVisibility="Visible">

In Code

To explicitly set the TotalBarVisibility property to Visible, add the following code to your project:

      Visual Basic

C1DataGrid1.TotalBarVisibility = Windows.Visibility.Visible

      C#

c1DataGrid1.TotalBarVisibility = Windows.Visibility.Visible;

TotalBarVisibility is set to Hidden

When the TotalBarVisibility property is set to Hidden, the space where the total bar should appear appears blank.

 

In XAML

You can set the TotalBarVisibility property to Hidden in the Properties window or by adding TotalBarVisibility="Hidden" to the <c1grid:C1DataGrid> tag so that it looks similar to the following:

<c1grid:C1DataGrid Name="C1DataGrid1" TotalBarVisibility="Hidden">

In Code

To set the TotalBarVisibility property to Hidden, add the following code to your project:

      Visual Basic

C1DataGrid1.TotalBarVisibility = Windows.Visibility.Hidden

      C#

c1DataGrid1.TotalBarVisibility = Windows.Visibility.Hidden;


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