Hi..
How to check a check box based on a condition at run time?

Member Avatar for Huntondoom
Checkbox1.checked = [Condition]

or:

Checkedbox1.checked = True

then the checkbox will appear checked

Checkedbox1.checked = False

then the Checkbox will appear not checked

Thanks, But the check box is a control of data grid view. It does not have the property checkbox1.Checked.How can I check the check box dynamically?

based on the condition take the cell of the row and set to true.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.