Error: Unable to cast object of type 'Infragistics.Win.UltraWinGrid.UltraGrid' to type 'Infragistics.Win.IValueList'.
I get the above error when assigning the valuelist of a cell to a databound dropdown. Both the cell type and valuemember of the dropdown are of type integer. The displaymember of the dropdown is of type string.
I have done this hunderds of times in the past but am baffled why this is not working this time
Any advice would be gratefully appreciated.
Mike Halford
IT Manager
Viverdi Ltd.
Hi Mike,
The ValueList property of hte column takes an IValueList. That means you can assign it a ValueList or an UltraDropDown. You can't assign it a grid control, because the grid is not a ValueList. You probably want to use UltraDropDown - it's like a dropdown grid.
Thanks for the quick response. Fool me. I was binding it to another grid on the form not the UltraDropdown.
All sorted now.
Thanks again.