troubleshooting Question

ASP.Net combobox handle no change for edit

Avatar of dodgerfan
dodgerfanFlag for United States of America asked on
8 Comments2 Solutions493 ViewsLast Modified:
I have an form (C# code behind). I'm using the combo box control from DevExpress. The combo box shows a list of countries to select from. It's one of several controls on the form, all tied to a database table. When I insert a record, I have no issues. When I bring a record up for editing, if I make a change to the combobox dropdown (and any other edits, it works fine. However, if I bring it up and make edits without making a change to the value in the combobox, I get the "Error converting data type nvarchar to int" error. I am trying to find out how to handle this. The combobox displays the Country that has been selected, but a numeric value is what is stored in the table. Any ideas?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros