Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
ValueListItems cannot be added
posted

Could somebody tell me whats wrong in below code. I get an error message while i try to add the below code in my project:

An unhandled exception of type 'System.ArgumentException' occurred in infragistics.win.v3.1.dll. Additional information: Can't add a ValueListItem to a value list item collection

Dim ValueListItem1 As Infragistics.Win.ValueListItem = New Infragistics.Win.ValueListItem

Dim ValueListItem2 As Infragistics.Win.ValueListItem = New Infragistics.Win.ValueListItem

ValueListItem1.DataValue = False

ValueListItem1.DisplayText = "Date/Facility"

ValueListItem2.DataValue = False

ValueListItem2.DisplayText = "Facility/Date"
Me.optSort.Items.Add(ValueListItem1)  - ERROR Here Cant add a valueListItem to value list item collection
Me.optSort.Items.Add(ValueListItem2)

Parents Reply Children
No Data