I'm trying to get the gridgroupcontrol to highlight the row just as it would if I select the row with a mouse. I am noticing that the row header is changing to signify that the current row index has changed but the row isn't highlighting. I did have this at some point working but feel there must be a setting for the grid that controls this behaviour.
I don't want to use SetSelected(true) just SetCurrent().
I have attached a demo project along with a couple of screenshots that shows what I'm seeing.
The code in question is below:
private void selectNextRowButton_Click(object sender, EventArgs e)
{
var record = documentsGrid.Table.CurrentRecord;
if (record != null)
{
documentsGrid.Table.Records[documentsGrid.Table.Records.IndexOf(record)+1].SetCurrent();
}
}
Thanks in advance.
Attachment:
SetCurrent_Problem_Solution_386ca716.zip