BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
#Form1.cs
private void GridGroupingControl1_TableControlCurrentCellKeyUp(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlKeyEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.TableControl.CurrentCell.RowIndex, e.TableControl.CurrentCell.ColIndex);
Record record = style.TableCellIdentity.DisplayElement.GetRecord();
int startIndex = this.gridGroupingControl1.Table.Records[0].GetRowIndex();
int actualIndex = record.GetRowIndex() - startIndex;
Console.WriteLine("Current row index: " + actualIndex);
} |