■ UltraGrid 클래스에서 값 리스트를 사용하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
using Infragistics.Win; using Infragistics.Win.UltraWinGrid; private UltraGrid ultraGrid; ... this.ultraGrid.DisplayLayout.ValueLists.Add("SampleList"); this.ultraGrid.DisplayLayout.ValueLists["SampleList"].ValueListItems.Add(1, "Enterprise Support"); this.ultraGrid.DisplayLayout.ValueLists["SampleList"].ValueListItems.Add(2, "No Support" ); this.ultraGrid.DisplayLayout.ValueLists["SampleList"].ValueListItems.Add(3, "General Support" ); this.ultraGrid.DisplayLayout.ValueLists["SampleList"].DisplayStyle = ValueListDisplayStyle.DisplayText; this.ultraGrid.DisplayLayout.Bands[0].Columns.Add("Support"); this.ultraGrid.DisplayLayout.Bands[0].Columns["Support"].ValueList = this.ultraGrid.DisplayLayout.ValueLists["SampleList"]; |