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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Object of type ''System.String'' cannot be converted in type ''System.Double'' in GDBG

Thread ID:





46394 Jul 12,2006 01:01 PM UTC Jul 26,2006 06:58 AM UTC WinForms 2
Tags: GridControl
Asked On July 12, 2006 01:01 PM UTC

Hi, i''m using a GridDataBoundGrid. When i want to create an item, i add a new row and show a button in the last column of the row, ans i allow the user only to modify that row. The datasource of the grid is a custom class that implements tne needed methods. My problem is that when i click the accept buttton, during the execution of grid_CellButtonClicked event (but it is not in the event''s code) a messagebox apperar saying "Object of type ''System.String'' cannot be converted in type ''System.Double''" although this error is not true (since i set the data source as readonly when the button is clicked and at the end of the event i set readonly to false, so the MessageBox appears but does not modify the datasource, i a can save the item to database). So... who can i prevent this message to appear? i have read this http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=26 but it does not fit my scenario. Thank you

Replied On July 13, 2006 07:03 AM UTC

One more thing that i forgot yesterday, this only happens when i add the first item. When adding other items the message doesn''t appear. Before using the attribute ReadOnly in my custom datasource after the message appearing an one of the cells that had a value (string value that maps to a string field) was reset to blank.

Replied On July 26, 2006 06:58 AM UTC

Any suggestion?


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