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

covered ranges

Thread ID:





27513 Apr 13,2005 05:42 PM UTC Apr 14,2005 12:16 AM UTC WinForms 1
Tags: GridControl
Asked On April 13, 2005 05:42 PM UTC

See the covered cells example that ships with Syncfusion and set the ActiveCurrentCellBehavior to GridCellActivation.DblClickOnCell. Run the application and using the mouse click on a covered range without releasing the mouse button move the button and notice that the entire covered range becomes highlighted. This is different from Excel behavior. How can I turn off the highlighted of a covered range when I move the mouse over the covered cell range? Thanks, Steve

Administrator [Syncfusion]
Replied On April 14, 2005 12:16 AM UTC

There is no property settings to do this. I think you will have to use your own mouse controller. You can try to modify the default behavior by replacing the existing Selection MouseController with your own customized version. The whole implementation of the GridSelectCellsMouseController class could be copy/pasted to your project and you can rename the class name to for example MySelectCellsMouseController. Then you need to register this custom class with the grid and remove the original mousecontroller. Do this as follows: grid.Model.Options.ControllerOptions &= ~GridControllerOptions.SelectCells. MySelectCellsMouseController selectCellsController = new MySelectCellsMouseController(grid); grid.MouseControllerDispatcher.Add(selectCellsController); Now with that custom mouse control in your project you can now modify it to your needs. In particular, you could remove teh code that adjusts the range for coveredcells. There might be some references to internal Switches that we use internally for debugging and you will get a compiler error about them you can simply comment out those lines.


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