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

Determines the formatting attributes that will be applied to the card Label in a band or the grid.

Syntax

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

Example

Following code sets up ActiveCardCaptionAppearance on the layout's and a band's override.

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

  Private Sub Button26_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button26.Click

      ' ActiveCardCaptionAppearance appearance applies to the card caption of the active
      ' card in card-view. 

      ' Set the ActiveCardCaptionAppearance on the layout's Override so that it applies 
      ' to card caption of the active card in any band in the grid.
      Me.UltraGrid1.DisplayLayout.Override.ActiveCardCaptionAppearance.BackColor = Color.DarkBlue
      Me.UltraGrid1.DisplayLayout.Override.ActiveCardCaptionAppearance.ForeColor = Color.LightYellow

      ' You can override that grid-wide setting for a particular band by setting it on the 
      ' override of that band.
      Me.UltraGrid1.DisplayLayout.Bands(0).Override.ActiveCardCaptionAppearance.BackColor = Color.Maroon

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

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

	// ActiveCardCaptionAppearance appearance applies to the card caption of the active
	// card in card-view. 

	// Set the ActiveCardCaptionAppearance on the layout's Override so that it applies 
	// to card caption of the active card in any band in the grid.
	this.ultraGrid1.DisplayLayout.Override.ActiveCardCaptionAppearance.BackColor = Color.DarkBlue;
	this.ultraGrid1.DisplayLayout.Override.ActiveCardCaptionAppearance.ForeColor = Color.LightYellow;

	// You can override that grid-wide setting for a particular band by setting it on the 
	// override of that band.
	this.ultraGrid1.DisplayLayout.Bands[0].Override.ActiveCardCaptionAppearance.BackColor = Color.Maroon;

}

See Also