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

colwidths and virtual grid

Thread ID:





45068 Jun 9,2006 01:40 PM UTC Aug 17,2006 12:49 PM UTC WinForms 3
Tags: GridControl
Andy Ullman
Asked On June 9, 2006 01:40 PM UTC

Hi, I was wondering if it is possible to set the colwidths on a row by row basis in a virtual grid. The querycolwidth event seems to be called once for each col for the grid, not once for each col for each row. I''m trying to provide some grid within a grid functionality (like the gridgroupingcontrol) using a virtual grid. Thanks Andy

Administrator [Syncfusion]
Replied On June 11, 2006 01:04 PM UTC

There is no way to very column widths row by row in a GridControl. A column width is a grid-wide property. But you can give the appearance of column widths varying row by row using covered ranges (for example, treating two side by side cells in a particular row as one cell). You can do this by explicitly adding the desired range to the grid.CoveredRanges collection, or you can use the event, QueryCoveredRanges to do it dynamically.


Replied On August 17, 2006 09:27 AM UTC

Clay (et. al.)

Does QueryCoveredCells get called for
every cell? If for example it is called
for cell 3,4 and in handling that event
you cover cells 3,4,3,5, will there be
another call to QCC for cell 3,5, or
does that get minimized out?


Administrator [Syncfusion]
Replied On August 17, 2006 12:49 PM UTC

Hi Ralph,

Yes. The QueryCoveredRange event fires for every cell. When you specify the desired covered range using the QueryCoveredRange, the event minimizes for the desired covered range except the top-left cell range.



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

or the page will be automatically redirected to 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