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
220
InvalidCastException when assigning dropdown to grid cell
posted

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 Tongue Tied

 

Any advice would be gratefully appreciated.

 

Mike Halford

IT Manager

Viverdi Ltd.

 

Parents
  • 469350
    Verified Answer
    Offline posted

    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.

Reply Children
No Data