I am trying to figure out how to add a valuelist to the ultragrid but everything I've found and tried has not worked. I have to be missing something. If someone could step me through each step for just a simple list of a couple of items, I could figure out the rest from there.
Thanks,Kevin
The code below creates ValueList and ValueListItems and adds them to the grid.
ValueList is a list of items that you can attach to your UltraGridColumnsValueList valueList1 = new ValueList(38170917);ValueListItem valueListItem1 = new ValueListItem();ValueListItem valueListItem2 = new ValueListItem();ValueListItem valueListItem3 = new ValueListItem();ValueListItem valueListItem4 = new ValueListItem();ValueList valueList2 = new ValueList(46896754);ValueList valueList3 = new ValueList(46906719);
valueList1.DisplayStyle = Infragistics.Win.ValueListDisplayStyle.DisplayText; valueList1.Key = "Type"; valueListItem1.DataValue = "Attending Physician"; valueListItem1.DisplayText = "Attending Physician"; valueListItem2.DataValue = "Assistant"; valueListItem2.DisplayText = "Assistant"; valueListItem3.DataValue = "Technician"; valueListItem3.DisplayText = "Technician"; valueListItem4.DataValue = "Procedurist"; valueListItem4.DisplayText = "Procedurist"; valueList1.ValueListItems.Add(valueListItem1); valueList1.ValueListItems.Add(valueListItem2); valueList1.ValueListItems.Add(valueListItem3); valueList1.ValueListItems.Add(valueListItem4);valueList2.Key = "Provider"; valueList2.MaxDropDownItems = 15; valueList2.SortStyle = Infragistics.Win.ValueListSortStyle.Ascending; valueList3.Key = "Service"; valueList3.MaxDropDownItems = 15; valueList3.SortStyle = Infragistics.Win.ValueListSortStyle.Ascending; this.grdClinicians.DisplayLayout.ValueLists.AddRange(new Infragistics.Win.ValueList[] { valueList1, valueList2, valueList3});
You can find more information on this link
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7841