Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
Grouped-By rows and appearance change
posted

Hi,

I have a problem with a WinGrid (NetAdvantage 2007) :

I have rows, that are grouped by one or more fields.
At the beginning all groups are collapsed. I expand manually some of them.

Then I have a function that changes the aspect of some rows based on rules :
row.Appearance.BackColor = System.Drawing.Color.White;
row.Appearance.BackColor2 = System.Drawing.Color.DarkGray;
row.Appearance.BackHatchStyle = BackHatchStyle.BackwardDiagonal;

The problem is that when the appearances are applied, all groups get collapsed again.
I want them to remain in the same state (expanded or collapsed) as they were before the "appearance change"...


Is it a bug ? It may have been corrected in newer versions of NetAdvantage, but I cannot just update my version, I'm stuck with the 2007 one...
I image I could check the state of each group, store it somewhere, apply my appearances, and then restore the state of each group afterwards, but it seems like too much to do for this...

Thanks in advance,
Philippe.