■ UltraGrid 클래스에서 홀수 행 색상을 설정하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
using System.Drawing; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; private UltraGrid ultraGrid; ... this.ultraGrid.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.Orange; this.ultraGrid.DisplayLayout.Override.RowAlternateAppearance.BackColor2 = Color.OrangeRed; this.ultraGrid.DisplayLayout.Override.RowAlternateAppearance.BackGradientStyle = GradientStyle.Vertical; |