Dim iCol As Integer = e.ColumnIndex
This will get the index of the header that u click.
While e As System.Windows. Forms.DataGridV iewCellMouseEve ntArgs