Infragistics(R) NetAdvantage(R) Windows Forms
SummaryValueAppearance Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridOverride Class : SummaryValueAppearance Property

Returns or sets the Appearance object that controls the formatting of summaries in summary footers.

Syntax

Visual Basic (Declaration) 
Public Property SummaryValueAppearance As Infragistics.Win.AppearanceBase
C# 
public Infragistics.Win.AppearanceBase SummaryValueAppearance {get; set;}

Example

Following code sets the appearance related properties for summaries.

Visual BasicCopy Code
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button14_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button14.Click

      ' Set the appearance of the summary footer area.
      Me.ultraGrid1.DisplayLayout.Override.SummaryFooterAppearance.BackColor = Color.White
      Me.ultraGrid1.DisplayLayout.Override.SummaryFooterAppearance.ForeColor = Color.Black

      ' Set the border style of the summary footer.
      Me.ultraGrid1.DisplayLayout.Override.BorderStyleSummaryFooter = UIElementBorderStyle.Solid

      ' Set the appearance for the caption on top of the summary area.
      Me.ultraGrid1.DisplayLayout.Override.SummaryFooterCaptionVisible = DefaultableBoolean.True
      Me.ultraGrid1.DisplayLayout.Override.SummaryFooterCaptionAppearance.BackColor = Color.DarkBlue
      Me.ultraGrid1.DisplayLayout.Override.SummaryFooterCaptionAppearance.BackColor = Color.LightYellow

      ' Set the text that shows up in the caption of the summary footer.
      Me.ultraGrid1.DisplayLayout.Bands(0).SummaryFooterCaption = "Summaries for customers"

      ' Set the border style for the summary footer caption.
      Me.ultraGrid1.DisplayLayout.Override.BorderStyleSummaryFooterCaption = UIElementBorderStyle.Solid

      ' Set the appearance of individual summaries inside the summary footer
      Me.ultraGrid1.DisplayLayout.Override.SummaryValueAppearance.TextHAlign = HAlign.Right
      Me.ultraGrid1.DisplayLayout.Override.SummaryValueAppearance.BackColor = Color.White
      Me.ultraGrid1.DisplayLayout.Override.SummaryValueAppearance.ForeColor = Color.Black

      ' Set the border style for summaries in the footer.
      Me.ultraGrid1.DisplayLayout.Override.BorderStyleSummaryValue = UIElementBorderStyle.Solid

  End Sub
C#Copy Code
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button14_Click(object sender, System.EventArgs e)
{

	// Set the appearance of the summary footer area.
	this.ultraGrid1.DisplayLayout.Override.SummaryFooterAppearance.BackColor = Color.White;
	this.ultraGrid1.DisplayLayout.Override.SummaryFooterAppearance.ForeColor = Color.Black;

	// Set the border style of the summary footer.
	this.ultraGrid1.DisplayLayout.Override.BorderStyleSummaryFooter = UIElementBorderStyle.Solid;

	// Set the appearance for the caption on top of the summary area.
	this.ultraGrid1.DisplayLayout.Override.SummaryFooterCaptionVisible = DefaultableBoolean.True;
	this.ultraGrid1.DisplayLayout.Override.SummaryFooterCaptionAppearance.BackColor = Color.DarkBlue;
	this.ultraGrid1.DisplayLayout.Override.SummaryFooterCaptionAppearance.BackColor = Color.LightYellow;

	// Set the text that shows up in the caption of the summary footer.
	this.ultraGrid1.DisplayLayout.Bands[0].SummaryFooterCaption = "Summaries for customers";

	// Set the border style for the summary footer caption.
	this.ultraGrid1.DisplayLayout.Override.BorderStyleSummaryFooterCaption = UIElementBorderStyle.Solid;

	// Set the appearance of individual summaries inside the summary footer
	this.ultraGrid1.DisplayLayout.Override.SummaryValueAppearance.TextHAlign = HAlign.Right;
	this.ultraGrid1.DisplayLayout.Override.SummaryValueAppearance.BackColor = Color.White;
	this.ultraGrid1.DisplayLayout.Override.SummaryValueAppearance.ForeColor = Color.Black;			

	// Set the border style for summaries in the footer.
	this.ultraGrid1.DisplayLayout.Override.BorderStyleSummaryValue = UIElementBorderStyle.Solid;

}

Remarks

The SummaryValueAppearance property provides access to the Appearance object being used to control the summaries in summary footers for a band or the grid. The Appearance object has properties that control settings such as color, borders, font, transparency, etc. For more information on how to use properties that end in "Appearance", consult the topic for the Appearance property.

See Also