I have a grid with 3 bands. The 2 sub-bands are card view and I need different color schemes to help differentiate them.
So, I am trying to assign different stylesets to each band.
Is this possible?
Thanks in advance!
Bob
Hi,
This is exactly the sort of thing I was hoping to do, apply the stylng to each band. As we can't but I am using appstyling for the application, can I override in code the band colour through code?
I've tried UltraGridData.DisplayLayout.Bands(0).Header.Appearance.BackColor = System.Drawing.Color.Violet but it doesn't seem to have any effect, and the appstyling overwrites this. Is this because the ISL file uses an image for the grid header background?
What I'm trying to achieve is any child bands of expanded bands have a lighter colour than it's parent. We are currently using dark blue for the band headers, we want the child band to be a slightly lighter blue than it's parent and it's child to be lighter etc. etc. I'm don't want to loose the appstyling, because I don't want to have to keep changing code should we need to re-skin the app.
Any suggestions on how I can achieve this would be greatly appreciated.
Nathan
Thanks Mike!
I'll just build them in the appearences collection.
Hi Bob,
There may be different UIRoles in AppStylist for card than for regular rows. But AppStylist has no notion of Bands and there is no way to target a particular band with an application style.
You would have to do this in your application code.