Hi,
you cannot find that method because is protected.
protected void ClearSelection (int columnIndexException, int rowIndexException, bool selectExceptionElement);
If you really need that method than you can extend DataGridView...
Try following demo:
Public Class Form1
Private WithEvents dgv As New ExtendedDataGridView With {.Dock = DockStyle.Fill}
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.KeyPreview = True
Me.Controls.Add(dgv)
Dim col As New List(Of Data)
For i = 1 To 10
col.Add(New Data With {.ID = i, .Field1 = $"Row {i} Col 1", .Field2 = $"Row {i} Col 1"})
Next
dgv.DataSource = col
End Sub
Private Sub Form1_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.C Then
dgv.ClearSelectionEx(1, 5, True)
e.Handled = True
End If
End Sub
Public Class Data
Public Property ID As Integer
Public Property Field1 As String
Public Property Field2 As String
End Class
Public Class ExtendedDataGridView : Inherits DataGridView
Public Sub ClearSelectionEx(columnIndex As Integer, rowIndex As Integer, selectElement As Boolean)
MyBase.ClearSelection(columnIndex, rowIndex, selectElement)
End Sub
End Class
End Class
Result: