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
365
Setting SummaryFooterCaption for arbitrary row
posted

Hello All,

I have an UltraWinGrid that is bound to a dataset that has two tables connected by a foreign key (so child rows appear under it's parent row in the grid).  I have child columns that have summaries enabled.  If the user clicks the Sigma in the column header (of the child) and selects 'sum', is it possible to have the summary footer caption string to contain a value of a cell from the proper parent record?

What event do I need to handle, and how can it get the proper parent row so I can lift out the cell value i need?

Thanks for your help!

Corey.

  • 469350
    Verified Answer
    Offline posted

    Hi Corey,

    The SumaryFooterCaption applies to the whole band. There's no property to set it for a specific collection of child rows.

    You could probably do this using a CreationFilter. You could trap for the creation of the SummaryFooterCaptionUIElement and the TextUIElement it contains. Then you could use GetContext on those elements to get the Rows collection and set the text on the TextUIElement to whatever you want.

    If you have not used a CreationFilter before, I recommend that you search the forums for "CreationFilter". There are lots of posts with sample code. Also, get the Infragistics UIElementViewer Utility. It's a big help when working with UIElements.