I''m having the same issue as discussed in
I''m a little bit confused about the solution though.
I have instances of a custom class added to an arraylist which is then bound to the grid control.
When I try to edit the system.int32 fields, I get the "Cannot widen from target type to primative type" error.
Can you please spell out to me how to get around this using the CurrentCellValidating event?
Sorry if I''ve missed something simple,
ADAdministrator Syncfusion Team April 6, 2004 01:13 AM UTC
In the thread you referenced, I think the error was caused by the type of the coulmn being set to Int32 in one place and double in another.
Are you explicilty setting the CellValueType for this column? If not, then you might try setting it.
Exactly where are you getting this error? What is the callstack when you get the error?
DSDamien SawyerApril 6, 2004 04:46 AM UTC
I explicitly set StyleInfo.CellValueType for each of the columns and the problem went away.
Thanks again - You guys really do get 11 out 10 for support!! :-)