troubleshooting Question

AutoSizeMode or AutosizeColumnsMode properties can't be set

Avatar of liorim2
liorim2 asked on
.NET ProgrammingVisual Basic.NET
7 Comments1 Solution1063 ViewsLast Modified:
Can anybody help me with understanding why is it that when selecting an option for the AutoSizeMode property of a ComboBox type column in a DataGridView (using the designer, not code), or the DataGridView's AutosizeColumnsMode property (again, not programmatically), when closing the form on which the DataGridView resides, I get the Exception: "DataGridViewComboBoxCell value is not valid".

[TRUST ME. THE VALUE IS VALID!!!]

Only when selecting "NotSet" for the AuitoSizeMode property of the ComboBox column, or "None" for the DataGridView's AutosizeColumnsMode property, It works ok.

Is it a known bug. Or is it that I'm doing something, I can't even think of, wrong?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 7 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 1 Answer and 7 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