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.
Unfortunately, activation email could not send to your email. Please try again.

How to get focus on a newly added row.

Thread ID:





103938 Jun 11,2012 02:16 AM Jun 14,2012 12:14 AM WPF 1
Tags: GridControl
Asked On June 11, 2012 02:16 AM


I have a Syncfusion grid and a Add button to add a blank row in the grid control. So now, I want to get focus on first cell of newly created row.

Please help me out to resolve this problem.




S. Kannan [Syncfusion]
Replied On June 14, 2012 12:14 AM

Hi SG,


Thanks for your update.


You can achieve your requirement by using the below code snippets.


Code Snippet [C#]

private void Button_Click(object sender, RoutedEventArgs e)


     this.gridControl.Model.InsertRows(this.gridControl.Model.RowCount, 1);

     this.gridControl.CurrentCell.MoveTo(this.gridControl.Model.RowCount-1, 1);



We have created a sample application and it can be downloaded from the below location.


Sample Location: http://www.syncfusion.com/downloads/Support/DirectTrac/General/103938-1984165141.zip


Please let us know if you have any queries.



Kannan. S


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.

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.