AD
Administrator
Syncfusion Team
October 4, 2004 04:43 AM UTC
Is the DataColumn in your DataTable set to MyObject?
Is the GridBoundColumn.StyleInfo.CellValueType set to MyObject?
The error suggests to me that at least one of these properties has been set to MyObect, and the value you are setting is not actually a MyObject object. If you want to use a MyObject value in the cell, then both these properties should be set to MyObject, and the value you actually put into the cell should also be a MyObject.
If you can post a sample project showing the problem, maybe we can spot the actual problem.