Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
805
Application crash, due to EditModeEnding event being fired, chronically
posted

 

Hi All,

   In our project, in one particular grid, we have say 5 cells in a row. When we place the focus on the 5th cell (that being the last) in edit mode ended event, we do a validation and show a message. After the message is displayed to the user, the focus is moved to the first cell in the row, and made the cell to be in edit mode, using the following statement, 

 

firstCellInTheCurrentRow.DataPresenter.ExecuteCommand(DataPresenterCommands.

StartEditMode);

 

However, after the above statement is executed, the EdidModeEnding is keep on firing, endlessly. How to stop that? When I use the following code, still the edit mode ending keeps firing.

 

 

grdName_EditModeEnding(.......)

{

    if (<<edit mode ended called more than once for the same row>>)

    {

if (e.Force == false)

    {

           e.Cancel = true;

    }

    }

}

Questions: -

1) What could be possible scenario, wherein GridEditModeEnding event would keep firing seemlessly?

2) What could be the way, to stop this from happening?

Due to this behavior, StackOverFlowException occurs and application crashes. Please suggest a work around for this, This is one of the critical issue that we gotta handle ASAP, request your help on this. 

 

Thanks much in advance.

 

Regards,

Balaji Rajendran.

WoltersKluwer, CCH - Torrance, CA

 

Parents
No Data
Reply
  • 805
    posted

    We came up with a work around for this. Thanks in deed.

     

    Regards,

    Balaji Rajendran

Children
No Data