RC
Rajadurai C
Syncfusion Team
February 13, 2009 04:03 PM UTC
Hi Curt,
Thanks for your interest in Syncfusion products.
The focus can be set to the new addnew record first cell by handling TableControlCurrentCellEditingComplete and TableControlCurrentCellKeyDown event. Please refer to the following code.
bool b = false;
void gridGroupingControl1_TableControlCurrentCellEditingComplete(object sender, GridTableControlEventArgs e)
{
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
if (cc.RowIndex == 3)
{
b = true;
}
}
void gridGroupingControl1_TableControlCurrentCellKeyDown(object sender, GridTableControlKeyEventArgs e)
{
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
if (e.Inner.KeyCode == Keys.Enter && b)
{
cc.MoveTo(3, 1, GridSetCurrentCellOptions.SetFocus);
cc.ScrollInView(GridScrollCurrentCellReason.Any);
}
}
Regards,
Rajadurai