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

Close detailsView when exiting cell editing

Thread ID:





121853 Feb 1,2016 12:59 PM UTC Feb 4,2016 06:10 AM UTC WinRT 3
Tags: SfDataGrid
Asked On February 1, 2016 12:59 PM UTC


How to close all DetailsView, in SfDataGrid, automatically when exiting cell editing, in the master grid, with Enter key?

I have tried to use myDataGrid.CollapseAllDetailsView(); in CurrentCellEndEdit event, but it doesn’t work. 

The cell selection takes the first cell of my DetailsView grid instead of the following cell.

Other try: CurrentCellActivating event isn’t thrown when I use Enter key but works correctly when I change selection by mouse click when detailsview is expanded.



Attachment: Document_6408b767.zip

Sowndaiyan Paulpandi [Syncfusion]
Replied On February 2, 2016 01:03 PM UTC

Hi Aurelien,

Thanks for contacting Syncfusion Support.

You can achieve your requirement within the SfDataGrid.SelectionChanged Event based upon the RowIndex. We have prepare a sample as per your requirement and you can download the same from the below location,

Sample : http://www.syncfusion.com/downloads/support/forum/121853/ze/8.1-1066880894



Replied On February 3, 2016 09:33 AM UTC


Thanks for you sample. That works well.
But I would like the following cell be in editing mode automatically.
This works when the details view is collapsed but doesnt work when it is open and collapsed automatically by the event.
You can see my test on the following sample in attachment.


Attachment: 8.1_2be08da3.zip

Sowndaiyan Paulpandi [Syncfusion]
Replied On February 4, 2016 06:10 AM UTC

Hi Aurelien,

You can achieve your requirement by invoking the SfDataGrid.SelectionController.CurrentCellManager.BeginEdit() method before Collapse the DetailsViewGrid. We have modified the sample as per your requirement and you can download the sample from the below location,

Sample :




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