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

CurrentCellEndEdit event handler for master grid is not receiving event notification

Thread ID:

Created:

Updated:

Platform:

Replies:

116125 Apr 7,2014 06:29 PM UTC Apr 15,2014 11:54 AM UTC WPF 3
loading
Tags: SfDataGrid
Om Thapa
Asked On April 7, 2014 06:29 PM UTC

Hi,

In my application I have registered to listen for CurrentCellEndEdit event for master grid. However I am not receiving this event. During debug session I have found that it does receive this event sometimes but not always. I have also registered to listen for CurrentCellBeginEdit and I am getting this event notification every time on start edit on master grid.

Thanks,
Om  

Saravanan C [Syncfusion]
Replied On April 10, 2014 02:44 PM UTC

Hi Om,

Thank you for contacting Syncfusion support.

If you want to handle CurrentCellEndEdit event of DetailsViewDataGrid means then you need to hook that event for DetailsViewDataGrid not for MasterDataGrid. Please find the code snippet to hook CurrentCellEndEdit event of DetailsViewDataGrid.

Code snippet: [XAML]

<syncfusion:SfDataGrid.DetailsViewDefinition>

    <syncfusion:GridViewDefinition RelationalColumn="OrderDetails">

        <syncfusion:GridViewDefinition.DataGrid>

            <syncfusion:SfDataGrid x:Name="FirstDetailsViewGrid"

                                    AllowEditing="True"

                                    CurrentCellEndEdit="FirstDetailsViewGrid_CurrentCellEndEdit_1"

                                    NavigationMode="Cell">

                <syncfusion:SfDataGrid.Columns>

                    <syncfusion:GridTextColumn MappingName="OrderID" />

                    <syncfusion:GridTextColumn MappingName="ProductID" TextAlignment="Right" />

                </syncfusion:SfDataGrid.Columns>

            </syncfusion:SfDataGrid>

        </syncfusion:GridViewDefinition.DataGrid>

    </syncfusion:GridViewDefinition>

</syncfusion:SfDataGrid.DetailsViewDefinition>

Sample: http://www.syncfusion.com/uploads/user/directTrac/123477/Sample787874644.zip

Please let us know if you have any queries.

 

Regards,

Saravanan C


Om Thapa
Replied On April 10, 2014 08:59 PM UTC

Saravanan ,

What I mean by Master Master gird was the inner grid? Sorry I miss labeled the grid. 
I have registered to listen for the event from DetailsViewDataGrid, but it doesn't get called every time. And I have registered to listen for event in code behind.

Thanks,
Om

Saravanan C [Syncfusion]
Replied On April 15, 2014 11:54 AM UTC

Hi Om,

We have created a sample to wire the CurrentCellEndEdit event for DetailsViewDataGrid from code behind. We can get event notification at all time when we finish edit and move any other cell in DetailsViewDataGrid. Please find the code snippet and sample in the following location. If you do not get CurrentCellEndEdit event notification for DetailsViewDataGrid, then please modify the sample along with replication procedure. That will help us to provide a solution sooner.

Code Snippet[C#]:

 

this.FirstDetailsViewGrid.CurrentCellEndEdit += FirstDetailsViewGrid_CurrentCellEndEdit;

 

void FirstDetailsViewGrid_CurrentCellEndEdit(object sender, Syncfusion.UI.Xaml.Grid.CurrentCellEndEditEventArgs args)

{

    //throw new NotImplementedException();

}

 

Sample: http://www.syncfusion.com/downloads/support/directtrac/121681/CurrentCellEndEdit_event_in_DetailsViewDataGrid485878266.zip

 

Regards,

Saravanan C


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

;