バージョン

CellButtonAppearance プロパティ (UltraGridOverride)

バンド内またはグリッド内のセルにあるボタンに適用される書式化属性を設定します。
シンタックス
'宣言
 
Public Property CellButtonAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase CellButtonAppearance {get; set;}
使用例
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;

}
参照