I use the init layout event to set the summary row appearance, caption and values, but that's grid wide.
I've been trying to set the backcolor of summary rows for a particular groupby row collection so that it matches the groupbyrow.Appearance.BackColor, which I set in the InitializeGroupbyRow event. I can get the summary VALUES from the summary row, (e.Rows.SummaryValues from the InitializeRowsCollection event, (I think I did)), but the appearance eludes me. (I've read here in the forums that the summary row, isn't a row actually, which makes sense, as the init_row never finds a summary row. So, then I wonder what the row.isSummaryRow property for? )
Thanks,
Bill
Hi Bill,
If you want to learn about DrawFilters, then I recommend checking out the Infragistics Knowledge Base for articles and sample DrawFilters. Also, you should download the Infragistics UIElementViewer Utility. This utility is a big help when working with UIElements.
Thank you Mike;
Looks like I'l be learning about drawfilters; sounds kind of fun.
row.IsSummaryRow is really for internal use. There are cases, such as when you export the grid, that it creates summary row objects to pass to the object doing the exporting. So that doesn't really help you at all here.
There's no appearance for an individual summary row. The SummaryValue has an appearance, though. So you could loop through the SummaryValues collection and set the Appearance on each one.
If that's no good and you want to apply a color to the entire summary row, then the only way to do that is to use a DrawFilter.