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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dynamic covered cells with text

Thread ID:





1145 Sep 26,2002 03:58 PM UTC Sep 27,2002 09:20 AM UTC WinForms 2
Tags: GridControl
Andre King
Asked On September 26, 2002 03:58 PM UTC

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?

Administrator [Syncfusion]
Replied On September 26, 2002 09:49 PM UTC

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.

Andre King
Replied On September 27, 2002 09:20 AM UTC

Thanks a lot. That's just what I needed. I put it in my real project and it works very well. regards, a


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

Live Chat Icon For mobile
Live Chat Icon