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
skipping over null cells for summary?
posted

Hi All,

I recently started using Infragistics controls and I've got a UltraWinGrid in NetAdvantage 2008 Vol 2 where I have column summaries configured.  If rows in a column are null (never assigned anything), it screws up the summary 'average/min' calculations since it appears these cells are implied to be '0'. 

Is there anyway to get a proper calculation of summaries like 'count/average/min' when there are null cells?  Or perhaps to populate the 'dead' cells with some _invisible_ constant to prevent them from being used in the calculations?

Thanks!

Corey.

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Corey,

    How are you doing the summaries? Are you using a Formula or one of the built-in summary types?

    The grid doesn't really have any way to know whether or not empty cells should be included in a summary calculation or not. So it assumes they do.

    If you are using the built-in summaries, then you would get around this by using a custom summary and writing your own ICustomSummaryCalculator.

    If you are using formulas, you will need to create your own functions that ignore empty values.

Reply Children