datagridx.CurrentRowIndex = xx
datagridx.Select(xx)
Try
datagridx.UnSelect(xx - 1)
Catch ex As Exception
End Try
Il try catch end try serve nel caso in cui la risa xx sia 0 e quindi xx-1 =-1 (in pratica gestisco l'errore dovuto al fatto che nel dg ovvvvvvvviamente non esisteuna riga -1)