Hi,
I need a favour from you guys, Iam using one custom grid control, which is inherited from "Syncfusion.Windows.Forms.Grid.GridDataBoundGrid", one more custom grid column cell model control, which is inherited GridDropDownGridListControlCellModel and Windows Forms.
My form is using the custom grid control, this grid is having two columns, both are required fields to add an entry in the database. So when the gives only one field information and tries to close the form by clikcing the form closing(X). First time when user click the form closing then will receive error message "Required field is missing". Again if he press the form closing then will receive the "Object reference not set to an instance of an object".
When user tries to close the form at first time, grid row leave will execute, here iam calling e.Cancel=true and following events occurs.
- gdbgResults_CurrentCellValidating
- gdbgResults_CurrentCellAcceptedChanges
- gdbgResults_RowLeave
When user press the form closing button second time, only "gdbgResults_CurrentCellValidating" was executed and then receives the error message.
Observation:
- Grid validation becomes fail
- Grid cell moving becomes fail.
Please advice me how to proceed to avoid the error when user press the for closing button any time.
Sample85.zip