Under certain conditions a checkbox
I have will display an error. I'm trying do disable the checkbox
unless certain conditions are met.
I've tried the following
private void checkBox66_CheckedChanged(object sender, EventArgs e)
{
if (dataGridView3.RowCount == 0)
{
checkBox66.Checked = false;
}
}
But I realized this actively checks the box, before realizing any kind of uncheck. I need to make sure the checkbox
ignores any clicks on it while the rowcount is 0
Aucun commentaire:
Enregistrer un commentaire