We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl AddNewrecordFieldCell

Thread ID:





76561 Sep 12,2008 08:55 PM UTC Sep 20,2008 11:52 AM UTC WinForms 1
Tags: GridControl
Truman Lackey
Asked On September 12, 2008 08:55 PM UTC

How do I keep focus on the AddNewRecordFieldCell after a record is added?

SubhaSheela R [Syncfusion]
Replied On September 20, 2008 11:52 AM UTC

Hi Truman,

Thanks for the interest in Syncfusion products.

You can get the GridCurrentCell of the CurrentElement and can move the focus to the first row to achieve the desired behavior. Please refer the following code snippet that shows how to get this behavior.

private void TableControl_MouseUp(object sender, MouseEventArgs e)
GridTableDescriptor parentTableDescriptor = this.gridGroupingControl1.GetTable("ParentTable").TableDescriptor;
GridTableDescriptor childTableDescriptor = this.gridGroupingControl1.GetTable("ChildTable").TableDescriptor;

Point pt = new Point(e.X, e.Y);
GridTableCellStyleInfo style = this.gridGroupingControl1.TableControl.PointToTableCellStyle(pt);
if(e.Button == MouseButtons.Right)
// show the contextmenu
if(style.TableCellIdentity.Table.TableDescriptor == childTableDescriptor)
this.childcontextMenu.Show(this.gridGroupingControl1.TableControl, pt);
private void menuItem3_Click(object sender, EventArgs e)
Element el = this.gridGroupingControl1.Table.CurrentElement;
GridNestedTable gnt = el as GridNestedTable;
GridCurrentCell cc = this.gridGroupingControl1.TableControl.GetNestedCurrentCell();

Please refer the sample in the below link that illustrates the above.


Please let me know if you have any questions.

Subhasheela R


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon