ComponentOne DataGrid for WPF and Silverlight
Compute Method (DataGridAggregateDistinct)

C1.Silverlight.DataGrid.Summaries Namespace > DataGridAggregateDistinct Class : Compute Method
The rows collection to which the aggregate function is applied.
The column to which the aggregate function is applied.
if set to true the function must be applied to sub groups recursively.
Computes the amount of distinct values in the rows collection corresponding to the specified column.
Syntax
'Declaration
 
Public Overrides Function Compute( _
   ByVal rows As DataGridRowCollection, _
   ByVal column As DataGridColumn, _
   ByVal recursive As System.Boolean _
) As System.Object
public override System.object Compute( 
   DataGridRowCollection rows,
   DataGridColumn column,
   System.bool recursive
)

Parameters

rows
The rows collection to which the aggregate function is applied.
column
The column to which the aggregate function is applied.
recursive
if set to true the function must be applied to sub groups recursively.
See Also

Reference

DataGridAggregateDistinct Class
DataGridAggregateDistinct Members