I'm having a gridEX component and up/down buttons for changing the selected row accordingly. If I select a certain row from the table, the up button should select the row above the previously selected row.
private void btnUp_Click(object sender, EventArgs e)
{
//TODO
int rowIndex = gridEX.Row;
if (rowIndex > 0)
{
GridEXRow newSelectedRow = gridEX.GetRow(rowIndex-1);
gridEX.SelectedItems.Clear();
gridEX.MoveTo(newSelectedRow);
}
}
The code above selects the right row, but the selection is not visible, like it would be if I click on the row. What could be the problem?