Hi,
I'm using one of the default style libraries "Office2007Silver.isl", but it does not apply a style to the UltraGridGroup header appearance. I opened up the AppStylist to remedy the problem but I can't seem to find its property.
How do I apply a style to the UltraGridGroup header?
Thanks
Ryan
Hello Ryan,
There are two types of grouping in our grid and the more commonly used one is by adding a group by sorted column. This in turn creates not a grid header, but GroupByRows which look like this:
You can achieve this by ether setting
ultraGrid1.DisplayLayout.Override.GroupByRowAppearance
or UI Rules -> Base -> GridGroupByRow in teh AppStylist.
Hope this is what you needed.
Sincerely,
Petar Monov,
DS Engineer,
Infragistics Bulgaria
Hi Petar,
Thanks for the quick reply. What I'm actually looking for is the setting for the grouped columns. ie. UltraGridGroup.
I want these headers to appear the same as the column headers. Where can I find these in the Appstylist?
Hi Ryan,
What you do is open up the Isl in AppStylist and go to the Grid canvas. There's a button at the top called "Canvas Options". Click this and you will see a dropdown with a whole bunch of options for the grid. The one you want is called "Show Group Header". Check that box and the grid on the canvas will show a group header and you can then hover the mouse over it to get it's UIRoles and style it.
Looks like the column headers have a Resource applied to them. So you can just apply the same resource to the group GridGroupHeader role.
As I said, the Group Headers and Column Headers in the grid look the same by default. They look different in your screen shot, so you are presumably applying different property setting to one or the other (or both) to make them look at way.
Anyway, it would like what you are looking for is some easy way to get the appearance of the column headers and apply the same appearance to the group headers. There is no easy way to do that. The appearance of the headers is not stored in any single property. There are many properties that affect it including the appearance on the individual header, the HeaderAppearance on the Override at both the band and the layout level, AppStylist, the HeaderStyle property on the Override, etc.
So you would have to account for all of that.
I will try to put it in another way.
I want to make the look and feel of my grid group header (UltraGridGroup) same as grid header(UltaGridColumn), but not with style sheet (isl file).
If some one later changes the style of any of the header in the stylesheet, i should get the styles of the grid header via properties in .net code so i can copy those styles to group header to make both the same look and feel.
I hope all the current look and feel properties of grid header(ultragridcolumn) are inside property, "UltraGrid.DisplayLayout.Bands(0).Header.Appearance".
If you don't understand my case, i will try to give you more explanation with screen shoots.
Thank you
Hi Toji,
I'm not sure what you are asking, exactly. The group headers and column headers in the grid look the same by default. So if yours look different, it's because you applied an Appearance or some other setting to one of them and not the other.
To attach an image to your post, go to the options tab and just attach the image file.
I have a similar case, but i don't want to use a style sheet (isl file) for applying style to UltraGridColum or UltraGridGroup.
Currently no styles are applied to my UltraGrid, so all the style properties of UltraGridColumn, when accessing via the code are returning default or empty values.
How can i make the the grid group headers (ultraGridGroup) appearance same as grid headers (UltraGridColumn) without style sheet ?
(I wanted to attach a screen shoot of my grid here to make things more clear, but i didn't find an option to attach images from my local computer. The insert image dialog is only giving option to set the image URL from internet. Can you please let me know how to upload images from local computer to forum, when writing new post).
Exactly what i'm looking for... thanks Mike!