Hi,
I'm trying to modify the navigation with the PreviewKeyDown event, but i need the current row index of the selected cell.
Second problem is to activate editing at the selected cell after this function:
public static void SetSelectedCell(GridViewDataControl gridView, int row, int column)
{
gridView.SelectedItem = gridView.Items[row];
gridView.ScrollIntoViewAsync(gridView.SelectedItem, gridView.Columns[column], (c) => c.Focus());
//in addition focus grid to enable keyboard navigation(e.g. F2)
gridView.Focus();
}
I'm trying to modify the navigation with the PreviewKeyDown event, but i need the current row index of the selected cell.
Second problem is to activate editing at the selected cell after this function:
public static void SetSelectedCell(GridViewDataControl gridView, int row, int column)
{
gridView.SelectedItem = gridView.Items[row];
gridView.ScrollIntoViewAsync(gridView.SelectedItem, gridView.Columns[column], (c) => c.Focus());
//in addition focus grid to enable keyboard navigation(e.g. F2)
gridView.Focus();
}