[]
Represents a Filter element of a DataSet, describing a filter to apply to rows of data in a dataset or data region, or to apply to the group instances.
public sealed class Filter : IValidateable
Filters are used to selectively include or exclude data rows or group instances based on specified criteria.
Filter filter = new Filter { Operator = FilterOperator.Equal, FilterExpression = "Germany", FilterValues = { "=Fields!Country.Value" } }
Name | Description |
---|---|
Filter() | Initializes a new instance of the Filter class. |
Name | Description |
---|---|
FilterExpression | Gets or sets an expression that will be evaluated for each instance within the group or each row of the dataset or data region and compared (via the Operator) to the FilterValues. |
FilterValues | Gets the values to compare to the FilterExpression. |
Operator | Gets or sets an operator used when comparing the FilterExpression to the FilterValues. |
Name | Description |
---|---|
Validate(ValidationContext) | Validates the current state of the Filter object. |