Grouping throwing off column count

I have a GridGroupingControl with a header Section. And in that section I use a covered range to span first 5 columns and display some text. But when I starting grouping my grid using GroupDropArea, the covered ranges get off.

It appears when grouping, it's adding columns behind the scenes. Because when I started printing out ColIndex and ranges, I noticed the count increased by 1 after grouping. See below. Is that by design? And if so, is there a value I can check to say if grouped, offset ranges by X? I.e. if I group by 2 values, my ColIndex is 3 and range goes to R0C3: R0C7.

columnName: Vendor - ColIndex: 1 - Range: R0C1:R0C5
columnName: Vendor - ColIndex: 2 - Range: R0C2:R0C6

Thanks.


1 Reply

JJ Jisha Joy Syncfusion Team April 11, 2011 06:08 AM UTC

Hi Greg,

The ColumnIndex will vary depending on the grouping. This is by design. Please let me know if you have any questions.

Regards,
Jisha


Loader.
Up arrow icon