We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

exception while adding new row to grid

Thread ID:





19754 Oct 4,2004 04:16 AM UTC Oct 4,2004 04:43 AM UTC WinForms 1
Tags: GridControl
Asked On October 4, 2004 04:16 AM UTC

Dear Clay I am working on grid databound grid using syncfusion.The grid has a hidden column with float(double) values.I have written code for adding a new row. The problem is that on adding new row and trying to save it , an exception "object must be MyObject type" is thrown.I am hard-coding a value in the query I make for filling the grid ,like this: select accessmode,63.000000000000 as accessmode from accesspermission; Here,accessmode is the actual column in the database and the second hardcoded value is the hidden column i was talking about.Could you please help me on this .It is critical to the project. Thanx

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon