Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • When editing in a textbox in a gridcontrol, one has to press 3 times the "ESC" button to leave a dialog.

                                    Steps to Reproduce:

                                    1. new XtraForm

                                    2. place a new button on it (with DialogResult.Cancel set)

                                    3. define the button as CancelButton

                                    4. place a gridcontrol on the form

                                    5. add a datasource on the form an bind it to the gridcontrol

                                    6. display the dialog with "showdialog"

                                    7. start editing the data in the gridcontrol (textedit) by entering some chars

                                    8. press "esc"

                                        --> the inplace editor gets closed

                                    9. press "esc"

                                        --> ????

                                    10. press "esc"

                                        --> the dialog closes

                                    Actual Results:

                                    The row is somehow still in edit mode.

                                    Expected Results:

                                    After the step 9 the dialog should get closed.

                                0

                                Hi Andreas,

                                This XtraGrid behavior is by design.
                                The first Escape key press closes the active cell editor canceling cell changes.
                                The second - cancels row changes.

                                If you need to cancel row editing on the first Escape key press, override the GridView.HideEditor method and call the GridView.CancelUpdateCurrentRow method after the base HideEditor method call. Please refer to the How to create a GridView descendant class and register it for design-time use article.

                                Thanks,
                                Michael.

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners