while (dtr.Read()) { if (dtr["EmpMaster"].ToString() == "N") { ChkEmpMaster.Checked = false; } else { ChkEmpMaster.Checked = true; }
I have written this code but always shows checked.
DataReader
CheckBox
ChkEmpMaster.Checked =dtr["EmpMaster"].ToString() == "yes";
dtr["EmpMaster"].ToString()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)