■ UltraGrid 클래스에서 모양 생성하고 적용하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
using System.Drawing; using Infragistics.Win.UltraWinGrid; private UltraGrid ultraGrid; ... this.ultraGrid.DisplayLayout.Appearances.Add("Highlighted"); this.ultraGrid.DisplayLayout.Appearances["Highlighted"].BackColor = Color.Red; this.ultraGrid.DisplayLayout.Appearances["Highlighted"].BackColor = Color.White; this.ultraGrid.DisplayLayout.Override.ActiveRowAppearance = this.ultraGrid.DisplayLayout.Appearances["Highlighted"]; this.ultraGrid.DisplayLayout.Override.RowSelectorAppearance = this.ultraGrid.DisplayLayout.Appearances["Highlighted"]; |