I'm using the code below to disable controls if user clicks Yes after deselecting a row, problem is if they select NO, the row deselected remains deselected, ist here a way to automatically reselect the row deselected when the user presses No?
The code is in the lostfocus event of my C1TrueDBGrid control or should the code be placed in another section?
If countrepeatedchar("0,1,2,3,4", "4") >= 1 And C1MunitionType.SelectedRows.Count = 1 Then
va = 1
C1OMT.Enabled = True
LO.BackColor = Color.Yellow
C1ImageA.Text = ""
If C1OMT.Text <> "" Then
Dim anadd As String = Nothing
anadd = MsgBox("Related information (OMT) on screen 4 for will also be deleted are you sure you want to deselect?", MsgBoxStyle.YesNo, "Warning before Attempting deselect Item")
If anadd = MsgBoxResult.Yes Then
C1OMT.Enabled = False
LO.BackColor = Color.LightGray
C1OMT.Text = ""