dbParameter.Value = cbox.SelectedValue==1
string comboValue = "true"; bool v = bool.Parse(comboValue); // use TryParse instead int yourDbValue = v ? 1 : 0;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)