In a databoundgrid I would like to suppress repeating adjacent values in the same row, covering the repeating cells with a single cell that shows the repeated value.
I was able to do this after binding the grid, but was not able to get text to display (even using the work-around). I have attached my attempt to make this work. If I try to set the cell type in the preparestyle event, it seems to re-fire itself - it stops after (a long) while.
There are some display problems with this - the values disappear if the cell is selected and unselected.
Is there a better way to do this?
ADAdministrator Syncfusion Team September 26, 2002 05:49 PM
If you want to dynamically set covered cells, you can handle the QueryCoveredRange event, and dynamically provide the covered range. Also, since you want access to the style for things other than just drawing the cell, the QueryCellInfo event is a better place to put the work around than the PrepareViewStyleInfo event.
Attached is your sample with these two events handled to provide the covered cells.
AKAndre KingSeptember 27, 2002 05:20 AM
Thanks a lot. That's just what I needed.
I put it in my real project and it works very well.