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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

InvalidCastException in DataGrid

Thread ID:




13288 Apr 25,2004 12:51 AM UTC Windows Forms 0
Tags: FAQ
Asked On April 25, 2004 12:51 AM UTC

Hi, I have a DataGrid on a WinForm into which I am loading a DataSet with 1 record. I have try/catch blocks around all of my code. When I click in any column of the new row, I get an InvalidCastException reported as an unhandled exception, with the additional information "Specified cast is not valid". How can I trap this exception? How can I find out where the invalid cast is? Any ideas what is causing it? Thanks, Royce


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.

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