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. Image for the cookie policy date
close icon

CurrentCell EndEdit Navigation

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

1 Reply

SM Saravanan M Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon