Hi
How to get current row index while moving up/down with navigation keys?
I had tried on this way but I get wrong values. It starts row index from not 0.
this.gridAnalitika.TableOptions.AllowSelection = GridSelectionFlags.Row | GridSelectionFlags.AlphaBlend;
private void gridAnalitika_TableControlCurrentCellKeyDown(object sender, GridTableControlKeyEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.TableControl.CurrentCell.RowIndex, e.TableControl.CurrentCell.ColIndex);
Record record = style.TableCellIdentity.DisplayElement.GetRecord();
Console.WriteLine("Current row index: " + record.GetRowIndex());
}
My grid contains headers, filter columns and then data rows.
Thanks!