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

How to get focus on a newly added row.

Thread ID:





103938 Jun 11,2012 06:16 AM UTC Jun 14,2012 04:14 AM UTC WPF 1
Tags: GridControl
Asked On June 11, 2012 06:16 AM UTC


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 04:14 AM UTC

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.

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