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

Virtual Grid and Covered Ranges object shows nothing when using QueryCoveredRange

Thread ID:





107700 Mar 12,2013 08:27 PM UTC Mar 13,2013 10:54 AM UTC WinForms 2
Tags: GridControl
Jeff Voigt
Asked On March 12, 2013 08:27 PM UTC

I'm handling the QueryCoveredRange method like so where topRowIndex, bottomRowIndex are valid values.

e.Range = GridRangeInfo.Cells(topRowIndex, e.ColIndex, bottomRowIndex, e.ColIndex);
e.Handled = true;

When the grid is displayed everything looks great:

I'm also handling the TableControlCellClick event and making a call to see if the clicked row crosses any of the covered ranges like so:

if (grd.TableModel.CoveredRanges.Ranges.AnyRangeIntersects(GridRangeInfo.Row(e.Inner.RowIndex)))

The problem is, the CoveredRanges.Ranges.Count is always 0.  The only way I've seen the CoveredRanges object populated correctly is if I manually add the ranges after binding the data instead of using the QueryCoveredRanges method.

Since there can be thousands of records we must take advantage of the QueryCoveredRanges call.

Has anyone ran across this and/or know what to do to help!?


Vinish Kumar K [Syncfusion]
Replied On March 13, 2013 10:04 AM UTC

Hi Cristiano Venancio Conte,


Thanks for your update.


We have analyzed your query with the different scenarios to freeze the row  in Grid Grouping Control. Currently we don’t have any direct support to freeze the rows in GGC. but you can implement the tree grid in Grid control and you can freeze the rows instead of GGC.  Please refer the below code.


this.gridControl1.Cols.FreezeRange(1, 8);

            int frozencolumn = this.gridControl1.Cols.FrozenCount;

            this.gridControl1.Rows.FrozenCount = 0;

            this.gridControl1.Rows.FrozenCount = 1;

            this.gridControl1.Cols.FrozenCount = frozencolumn;




Here is the new sample for this implementation.


Please let me know if you have any concerns.





Vinish Kumar K [Syncfusion]
Replied On March 13, 2013 10:54 AM UTC

Hi Jeff Voigt,


Thank you for your interest in Syncfusion Products.


Please ignore the previous update, I have posted that response by my mistake.


We have analyzed your query with provided result. The all cover range issue are resolve in our current Syncfusion essential studio version I am afraid that I am unable to reproduce the issue in our end with the provided details and screen shot. I have tried to prepare the sample with the help of the screen shot. But I am not able to reproduce the issue in our end.



Please provide any simple sample and replication procedure to reproduce the issue in our end. It will use to us to resolve the issue if have and able to provide response quickly.



Please let me know if you have any concerns.





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