본문 바로가기

Study/Programming

C# Infragistics.UltraWinGrid의 Dropdown List 추가

반응형

ultraGrid1.DataSource = SetDataTable();


Infragistics.Win.ValueList objValue = new Infragistics.Win.ValueList();

objValue.ValueListItems.Add("이상유", "이상유");

objValue.ValueListItems.Add("이상무", "이상무");

objValue.ValueListItems.Add("양호", "양호");

objValue.ValueListItems.Add("불량", "불량");

 

this.ultraGrid1.DisplayLayout.Bands[0].Columns[1].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;

this.ultraGrid1.DisplayLayout.Bands[0].Columns[1].ValueList = objValue;

반응형