■ UltraGrid 클래스에서 고정 컬럼을 지정하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
using System.Drawing; using Infragistics.Win.UltraWinGrid; private UltraGrid ultraGrid; ... this.ultraGrid.DisplayLayout.UseFixedHeaders = true; this.ultraGrid.DisplayLayout.Bands[0].Columns["CustomerID" ].Header.Fixed = true; this.ultraGrid.DisplayLayout.Bands[0].Columns["ContactName"].Header.Fixed = true; this.ultraGrid.DisplayLayout.Bands[0].Override.FixedHeaderIndicator = FixedHeaderIndicator.None; this.ultraGrid.DisplayLayout.Override.FixedHeaderAppearance.BackColor = Color.LightYellow; this.ultraGrid.DisplayLayout.Override.FixedCellAppearance.BackColor = Color.LightYellow; this.ultraGrid.DisplayLayout.Override.FixedCellSeparatorColor = Color.Red; |