[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Datagridview combobox items are case sensitive

Posted on 2012-04-11
2
Medium Priority
?
610 Views
Last Modified: 2012-04-30
I have a datagridview that has a combo box column.  The values that appear in the combobox are stored in a XML file.   I can populate the combo box and select the values ok but it appears that the items are case sensitive.

As an example....one of the combo box items is the word "CARTON" in all caps.  If i type the letter "C" when i am in the box it move directly to "CARTON" but if i enter a "c" (lowercase) it throws an error.  I am guess it is being caused by the XML file.  I have other combo boxes in the same grid whose data is stored in a database and dont have any problems.

I cant figure this out.  Any help would be appreciated.

Thanks
0
Comment
Question by:Mike_Stevens
2 Comments
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 1000 total points
ID: 37835328
XML is case sensitive.
0
 
LVL 10

Accepted Solution

by:
adriankohws earned 1000 total points
ID: 37843735
XML is case sensitive for sure. You can populate using the XML and make it offline and standardise to lower or uppercase when populating them into the combo box items.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question