This is the first time I'm using the CheckBox Control and have to write it's state to a (boolean) DataSet field .
This is the way I'm doing it:
chbSuspend is the CheckBox' name.
Dim dr As DataRow = DsProducts1.Tables("tProducts").NewRow
If chbSuspend.CheckState = CheckState.Checked Then
dr("Discontinued") = chbSuspend.Checked.TrueString
Else : dr("Discontinued") = chbSuspend.Checked.FalseString
The updating of the DataSet/DataBase does'nt work. Obviously handling boolean data is the problem.
Can somebody help me? Any help shall be greatly appreciated.