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 range on virtual mode allows selection crossing covered cells

Thread ID:





115890 Feb 19,2014 01:50 PM UTC Mar 22,2014 06:32 AM UTC WinForms 7
Tags: GridControl
Vagner Pagotti
Asked On February 19, 2014 01:50 PM UTC


I put a GridControl on virtual mode, and I override OnQueryCoveredRange to query my model, that has metadata information about merged ranges, and return a GridRangeInfo in Range property of GridQueryCoveredRangeEventArgs.
It is OK. Grid displays it right, but when I make a selection that has single cells and covered cells, the selection not include de entire covered cell, it cross the covered cell area.
The only way that I find to resolve this issue is add the range that I create in event, in CoveredRange collection of GridControl, but this break virtual mode way to work with my metadata. 
There is a way to resolve this?


Karuppasamy C [Syncfusion]
Replied On February 24, 2014 04:50 AM UTC

Hi Vagneer,

Thank you for using Syncfusion Products.

I have tried to reproduce the reported issue in my end. But I am unable to reproduce the issue which means Virtual mode works properly in my side. If  possible kindly share the sample in which you have faced the issue  which would help me to provide better solutions to you.

Please let me know if you have any concerns.

Karuppasamy C.

Vagner Pagotti
Replied On February 24, 2014 12:24 PM UTC


I attach a simple sample based on syncfusion sample codes. If you comment the line 222, you be able to see that behavior.
I also include two captured images in project to show both behaviors, one with covered ranges set up, and other without it.
I hope you can reproduce in your machine. I use the version is, but the same occurs in, that is my current. 

Thanks again,

Attachment: Syncfusion_7f56524c.zip

Vinish Kumar K [Syncfusion]
Replied On March 7, 2014 05:31 AM UTC

Hi Vagner,

Thanks for your update.

You can resolve this issue using the below codes in QueryCoveredRange. 

Please refer the attached sample for more details.we hope this will resolve the issue in your end.

Please let me know if you need further assistance.

Vinish K.

Attachment: CoveredRange_9c86ab9f.zip

Vagner Pagotti
Replied On March 7, 2014 12:40 PM UTC

Hi Vinish,

You replaced my workaround by another, but this do not solve the problem. I sent a sample app only to ilustrate the problem. 
I don't use this approach in my application because I have lot of ranges to manage and I can't create variables or arrays to control covered ranges collections. In virtual mode, I hope that I don't needed to keep any data in local variables. I need the grid asking me for this information on demand, right?
If there is no way to grid control this in virtual mode, without setting covered ranges collection for each range, tell me and I gonna open a ticket on support center to investigate this issue.


Anish George [Syncfusion]
Replied On March 18, 2014 07:03 AM UTC

Hi Vagner,


Thank you for your update.


We would like to let you know that the event QueryCoveredRange is used to merge the cells but the individual cells will get fired each time while using this event, each cell will act as a single cell. So we have to customize the code for selection while selecting the covered cells. We have used the SelectionChanging event to get the expected output. We have added a generic condition in such a way that when the selection range intersects with CoveredRange, then the selection should act as expected. Please refer the below sample. Likewise you have to extend the condition for all the CoveredRanges that you have added in your sample in the SelectionChanging event.





Please let us know if the given solution gives you the expected output.




Vagner Pagotti
Replied On March 18, 2014 01:35 PM UTC

Hi Anish,

Thanks for this very elegant workaround. It works!
After some changes to care about keyboard selection, we will implement it.
But I suggest you consider a review of that strategy in new versions of GridControl, because now we will get to call our model two times to get the same information about merged cells and this can slow virtual mode when the number of merged cells is large.


Anish George [Syncfusion]
Replied On March 22, 2014 06:32 AM UTC

Hi Vagner,


Thank you for your update.


We suggest you to report this through Direct-Trac Developer Support System( https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents ), because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. Our support engineer will analyze this and will update you with more information regarding this.


Please let us know if you need any further assistance.





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