Dim chk As New DataGridViewCheckBoxCell If condition Then chk.Value = TrueElse chk.Value = FalseEnd If' Add checkbox control to datagridDataGridView1.Item(0, 0) = chk
If condition Then DataGridView1.Item(0, 0).Value = TrueElse DataGridView1.Item(0, 0).Value = FalseEnd If
dim chk as checkbox
dim chk as New checkbox