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. Image for the cookie policy date
close icon

colwidths and virtual grid

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

3 Replies

AD Administrator Syncfusion Team 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.

Coveredranges.zip


RA ralph_lachance 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?

thx
ralph


AD Administrator Syncfusion Team 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.

Thanks,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon