How to Bind a checkbox to a binding source object
Posted on 2009-02-13
I am using VB.net 2008 and i am having trouble binding to a checkbox on my form.
this is my code
'chkLevyCharge.Checked = False
'chkLevyCharge.DataBindings.Add("Checked", bs, "LevyCharge")
it binds to it and when i scroll through the bs object it works, however the problem is when i try and add a new record to the bs (dataset)
bs.addNew() it does not clear the rest of my text boxes which i have bound to the bs, when i comment out the section of code binding to the checkbox then the bs.addnew() method works