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
975
Accessing a summary row appearance
posted

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

Parents
  • 469350
    Offline posted

    Hi Bill,

    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. 

Reply Children