troubleshooting Question

Saving a Null Value to a DataTable when a bound combobox is Cleared

Avatar of Declan Basile
Declan BasileFlag for United States of America asked on
Visual Basic.NET
4 Comments1 Solution71 ViewsLast Modified:
In vb.net, I have a combobox's "SelectedValue" property bound to a field of a datatable.  When I select an item from the combobox, the SelectedValue gets saved and the ColumnChanged event of the DataTable is triggered; however, when I clear the combobox, neither the SelectValue gets saved to the DataTable nor does the ColumnChanged event get triggered.  How can I get a Null value to be saved to the bound field of the DataTable when the combobox is cleared?
ASKER CERTIFIED SOLUTION
Declan Basile
IT

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

Join our community to see this answer!
Unlock 1 Answer and 4 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 4 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