internal bool TryAggregate(TAggregateType AggregateType, int colIndex, out double?ResultValue) { return(DataState.TryAggregate(AggregateType, colIndex, out ResultValue)); }
/// <summary> /// This method is used by the "AGGREGATE" tag in a FlexCel report to calculate the mximum/minimum/average/etc of /// the values in the table. If you don't implement this method, FlexCel will still calculate those values by looping /// through the dataset, but if you have a faster way to do it (like with a "select max(field) from table") then implement this /// method and return true. /// </summary> /// <param name="aggregateType">Which operation to do on the dataset. (Max/Min/etc)</param> /// <param name="colIndex">Index of the filed in which we want to aggregate.</param> /// <param name="resultValue">Returns the result of the operation in the dataset.</param> /// <returns>True if this method is implemented, false if not. Note that even if we return false here, /// FlexCel will still calculate the aggregate by looping through all the records.</returns> public virtual bool TryAggregate(TAggregateType aggregateType, int colIndex, out double?resultValue) { resultValue = 0; return(false); }