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
285
Special row in each group
posted

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

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

     

Children