I have a grouping grid that I set the selected record programatically, and need the navigation keep working with the cursor keys. This is how I set the selected record:
grdNews.Table.SelectedRecords.Clear();
grdNews.TableControl.SelectRecords.Clear();
grdNews.Table.SelectedRecords.Add(grdNews.Table.Records[0]);
grdNews.Table.Records[0].SetCurrent();
grdNews.Table.Records[0].SetSelected(true);
grdNews.TableControl.Focus();
This step is working fine. The problem is that when I try to navigate with the arrow keys,
the grid go to the records was selected before my code, the last record that was selected by key or click.
How can I correctly set the selected record in the grouping grid?