I fill the dvgPeople with the values from database. Insert/Update/Delete/Select commands work fine. The thing I want to do is to fill some components on form with the selected row’s values. I can fill the textboxes but I can’t handle the checkboxes. And here is the code.
if (dgvPeople.CurrentRow.Cells[6].Value == "1")
{
chkGerman.Checked = true;
}
else
{
chkGerman.Checked = false;
}
And when I debug this strange case occurs:

Even dgvPeople.CurrentRow.Cells[6].Value = 1, it is still false.
Your trying to check a boolean value against a string object.
This will work: