Hello,
I'am using UltraGrid (2009.2). I add 6 summeries in my ultragrid. The summeries #1-#5 are displayed as a sum of the columns 1-5 above them. The summary #6 are a sum of all columns. This summary #6 displaying in a new row.
But I want to have a "space" between the first summary row (#1-#5) and the second summary row (#6)..
Also I want to have that each summary row have on the left side a Caption ( i.e. Sum/Week, Total Sum)
COL1 COL2 COL3 COL4 COL5
111 222 333 444 555
Sum/Week : 222 444 666 888 1110
Sum/Total: 3330 (One row space to the row above this row)
I hope it is understandable what I want.
Thanks
BusinessClass said:But I want to have a "space" between the first summary row (#1-#5) and the second summary row (#6)..
There's nothing built-in to the grid to allow you to do this, but you might be able to acheive what you want by adding an additional summary to any one of the columns and then using a DrawFilter or a CreationFilter to hide that summary without actually setting it to hidden.
BusinessClass said:Also I want to have that each summary row have on the left side a Caption ( i.e. Sum/Week, Total Sum)
There's no support for a caption on the same line with the summaries. But if there is a column to the left of Col1, you could create a summary for that column that just displays some text. To get a summary that just shows text, you could set the DisplayFormat on the summary to a literal string.
Thanks for the answer.
In order to the problem of displaying a caption on the left side of the summary, can it be possible to do this with an "owner" drawn in the grid area? In the case of "yes", in which event I have to "hook" my owner draw code.
You could use a CreationFilter to add a TextUIElement or other elements into the appropriate area of the grid.
If you have not used CreationFilters before, though, there can be a pretty tough learning curve. I recommend that you search the forums for "CreationFilter". There lots of samples posted here of CreationFilter to do all sorts of different things.
I also recommend that you get the Infragistics UIElementViewer Utility. It will be a huge help to you in seeing the UIElements you need to modify.
Also, here's an article posted by another Infragistics customer who is doing something very similar to what you are trying to do here:
My Creation and Draw Filters Article - Infragistics Forums
Wow, that's a great feature. I didn't know anything about the feature of "TextUIElement" and "CreationFilter". I think this will help me.
Thanks a lot