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

Cancel DropDown Closing

Thread ID:





27249 Apr 8,2005 03:29 AM UTC Apr 8,2005 07:51 AM UTC WinForms 1
Tags: GridControl
Robert Charlebois
Asked On April 8, 2005 03:29 AM UTC

Hi there, Is it possible to cancel/stop a dropdown component in the gridcontrol from closing. What I have is a drop down grid component. I do not want to allow the user to close this grid until certain fields are filled out in the grid. Thanks in advance.

Administrator [Syncfusion]
Replied On April 8, 2005 07:51 AM UTC

The simplest way I know to handle this cleaning is to change the dropdown to be a modal dropdown as in one of the dropdowns in this sample. \Syncfusion\Essential Suite\\Windows\Grid.Windows\Samples\In Depth\DropDownFormAndUserControlSample To try to do this in a modeless way means trying to handle multiple ways of exiting the control. Some of these are problematic. For example, normally if you click teh scroll button on teh parent grid, the dropdown closes. You would have to catch this action at a point where you can prevent the actual scroll. Preventing the dropdown from closing is pretty easy. It can be done in the parent.CurrentCellDeactivating event. But the parent grid has already started its scroll at this time. Similarly, if you click teh close button on the parent form, you would have to handle this is a special way. And there are likely other things you would have to catch and handle. Using a Modal dropdown takes care of this for you.


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