Click or drag to resize

BcfRowViewRepositoryFilter Property

[This is preliminary documentation and is subject to change.]

Namespace:  CalculationWorks.ViewModel.Windows
Assembly:  CalculationWorks.ViewModel.Windows (in CalculationWorks.ViewModel.Windows.dll) Version: 4.0.0-beta7
Syntax
public ImmutableArray<BcfRowFilter> Filter { get; set; }

Property Value

Type: ImmutableArrayBcfRowFilter
The row filter; default is an uninitialized ImmutableArray<BcfRowFilter>.
Remarks

Default value is an empty ImmutableArray<BcfRowFilter>.

Row filtering prevents construction of BcfRowViews. It is one way to reduce memory pressure when dealing with many rows. Keep in mind: when a rowviews parent-rowview is filtered out; the parent rowview-property is null (and the corresponding BcfParentRelationCell.ParentRow is not). The same with child rowviews: If some child-rowviews are filtered out the child-rowview collection contains less items then the corresponding BcfChildRelationCell.

Setting Filter will NOT cause any change until the next DataChanged-event of view-managers DataSet. Call ReloadData after setting row-filters to create a consistent state.

Processing data-updates with filtered repositories can be an expensive operation when using relations. Consider using view-filters (see SetFilter(PredicateTRowView)) when filtering less than 90 percent of rows.

See Also