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

CurrentCell EndEdit Navigation

Thread ID:

Created:

Updated:

Platform:

Replies:

117756 Dec 8,2014 09:28 AM UTC Dec 10,2014 01:34 PM UTC WPF 1
loading
Tags: SfDataGrid
Juraj Tomana
Asked On December 8, 2014 09:28 AM UTC

Hi.

Please, advice me how to achieve that after cell editing, when I press Enter-key, I start editing of the cell on the right side from current position (or on the first cell on the next row;  even if nested grid is "following" , to edit first cell in it)?

Thanks.
Regards,
Juraj

Saravanan M [Syncfusion]
Replied On December 10, 2014 01:34 PM UTC

Hi Juraj,

 

Thanks for contacting Syncfusion support,

 

We have analyzed your query. We are able to achieve your requirement by using SelectionChanged event. Please refer the below code snippet.

 

Code snippet[C#]:

  this.dataGrid.SelectionChanged += dataGrid_SelectionChanged;

   void dataGrid_SelectionChanged(object sender, GridSelectionChangedEventArgs e)

  {

     .

     .     

      if (!this.dataGrid.IsInDetailsViewIndex(this.dataGrid.SelectionController.CurrentCellManager.CurrentRowColumnIndex.RowIndex))

      {

        RowColumnIndex rowcol = new RowColumnIndex(this.dataGrid.SelectionController.CurrentCellManager.CurrentRowColumnIndex.RowIndex, 1);

        this.dataGrid.MoveCurrentCell(rowcol, true);

        this.dataGrid.SelectionController.CurrentCellManager.BeginEdit();

      }

      .

      .

 

  }

 

We have prepared a sample based on this and you can download it from below attachment.

 

Please let us know if you have any queries,

 

Regards,

Saravanan.M


Attachment: DetailsView_With_EditFirstCell_32ff643d.zip

CONFIRMATION

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.

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

;