vendredi 25 mai 2018

Setting a checkbox's state according to column in gridview

I was just wondering how to either tick or untick a check box according to the value "TRUE" or "FALSE" in a gridview. Similar to writing the value in a textbox

textBox1.Text = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();

but for

checkBox1.Text = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();

if "TRUE" = Tick, if "FALSE" = Untick




Aucun commentaire:

Enregistrer un commentaire