I would like to ask, if there is any possibility how to insert some special row with text as a first row and last row in each group in UltraGrid.
I was able to put some text at the beginning and at the end of second group (there are rows with data) by usage of Summaries. Those texts are marked with yellow color on my picture.
What I need to do, is to put some row with text before GroupByRow and after each GrouByRow, marked on picture with red arrows. (between group-row with Text 'Poradove cislo ...') and GroupRow with text 'Nazov banky ...'
Thanks.
Dusan Musak
Hi,
For printing, yes. The grid prints the same UIElements you see on the screen. Although, you might have to adjust any calculations you are doing in the CreationFilter to account for printer graphics units.
For PDF exporting, no. The PDF export builds a document, it doesn't actually draw the grid elements. You might be able to handle certain events of the UltraGridDocumentExporter and modify the report to include the information you want. But this would probably be much more difficult than the CreationFilter and it may not even be possible unless you entirely take over the whole export operation of the GroupByRow itself.
Hi Mike, thanks for your answer. I'm just fighting with CreationFilter. One other question. When I win my fight :-) with CreationFilter, will be this TextUIElement visible in Print and Export (PDF) too?
Hi Dusan,
I cannot think of any way to do this using grid properties. But you might be able to acheive what you want using a CreationFilter. It would be a bit tricky, though, especially if you are not familiar with CreationFilters.
You might want to search the forums for CreationFilter examples and also get the Infragistics UIElementViewer Utility.
The first thing you would have to to is create a space in which to insert the text. This is very easy. You would handle the InitializeGroupByRow event and then set the RowSpacingBefore and/or RowSpacingAfter property on the row.
Then you have to use the CreationFilter to create a TextUIElement and insert it into that space and you can set the Text to whatever you want.