public void FilterExclusions(RowFilterArgs args) { if (ExcludedData.Contains(Data[args.SourceIndex])) { args.Visible = false; } }
public bool CanAddExclusion() => CurrentVisibleItem != null && !ExcludedData.Contains(CurrentVisibleItem);
public bool CanRemoveExclusion() => CurrentExcludedItem != null && ExcludedData.Contains(CurrentExcludedItem);
private bool CanAddExclusion(DataModel param) { return(param != null && Data.Contains(param) && !ExcludedData.Contains(param)); }