Если вы имеете в виду изменение индекса выбранной строки, это должно сработать:
private void button_Click(object sender, EventArgs e)
{
grid.ClearSelection();
// Select the third row.
grid.Rows[2].Selected = true;
}
Если вы хотите поменять строки (например, обмениваться данными в 1-й и 3-й строках), вот вариант:
int currentRowIndex = 0;
int newRowIndex = 2;
var currentRow = grid.Rows[currentRowIndex];
var rowToReplace = grid.Rows[newRowIndex];
grid.Rows.Remove(currentRow);
grid.Rows.Remove(rowToReplace);
grid.Rows.Insert(currentRowIndex, rowToReplace);
grid.Rows.Insert(newRowIndex, currentRow);