Version

CellButtonAppearance Property (UltraGridOverride)

Determines the formatting attributes that will be applied to the buttons in cells in a band or the grid.
Syntax
'Declaration
 
Public Property CellButtonAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase CellButtonAppearance {get; set;}
Example
Following code sets AllowGroupBy property on various objects in the UltraGrid.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button8_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button8.Click

      ' CellButtonAppearance applies to the buttons in cells. These buttons include
      ' dropdown arrow buttons, as well as column styles of Button and EditButton.

      Dim layout As UltraGridLayout = Me.ultraGrid1.DisplayLayout
      Dim band As UltraGridBand = layout.Bands(0)
      Dim column As UltraGridColumn = band.Columns(0)

      ' Set grid-wide CellButtonAppearance by using the layout's Override.
      layout.Override.CellButtonAppearance.BackColor = Color.Yellow

      ' You can override CellButtonAppearance for a particular band by setting that
      ' band's Override.CellButtonAppearance.
      band.Override.CellButtonAppearance.BackColor = Color.Magenta

      ' You can override above CellButtonAppearance settings for a column by setting
      ' column's CellButtonAppearance.
      column.CellButtonAppearance.BackColor = Color.Red

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

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

	// CellButtonAppearance applies to the buttons in cells. These buttons include
	// dropdown arrow buttons, as well as column styles of Button and EditButton.

	UltraGridLayout layout = this.ultraGrid1.DisplayLayout;
	UltraGridBand   band   = layout.Bands[0];
	UltraGridColumn column = band.Columns[0];
	
	// Set grid-wide CellButtonAppearance by using the layout's Override.
	layout.Override.CellButtonAppearance.BackColor = Color.Yellow;

	// You can override CellButtonAppearance for a particular band by setting that
	// band's Override.CellButtonAppearance.
	band.Override.CellButtonAppearance.BackColor = Color.Magenta;

	// You can override above CellButtonAppearance settings for a column by setting
	// column's CellButtonAppearance.
	column.CellButtonAppearance.BackColor = Color.Red;

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also