I have a combobox with like 10 items and a checkbox in a datagridview...if the user selects certain items from the dropdown in a combobox, the chechbox need to be checked by deafualt..and it should be read only...how can i do this....
i tried this
Public Sub cb_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
Select Case DataGridView1.CurrentCell.ColumnIndex
Dim cell As DataGridViewComboBoxEditingControl = DirectCast(sender, DataGridViewComboBoxEditingControl)
If cell.ValueMember = "abc" Then
ColReportReqd.Selected = True
ColReportReqd.ReadOnly = True