se fai cosi ??

datagridx.CurrentRowIndex = -1