VirtualDataTable.GetDistinct Method
Override this method to return a new VirtualDataSet with unique values. Note that the returned dataset will not have all the columns this one has, only the ones defined on "filterFields"
Remarks
You do not need to implement this method if you do not want to let users create "Distinct()" filters on the config sheet.
Syntax
Namespace: FlexCel.Report
public virtual VirtualDataTable GetDistinct(String newDataName, Int32[] filterFields)
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
newDataName | String | How this new VirtualDataSet will be named. This is what the user wrote on the config sheet, when creating the distinct dataset. Note that as with all the VirtualDataSets, this name is meaningless except for error messages. | |
filterFields | Int32[] | Fields where to apply the "distinct" condition. |
Returns
A new VirtualDataTable with the filtered data and the new name.