internal void UpdateColumnOptionControl(ColumnFilterControl columnFilterControl) { //Since visibility for column contrls is set off the ColumnFilterControl by the base grid, we need to //update the ColumnOptionControl since it is a seperate object. var ctrl = _optionControls.Where(c => c.FilterColumnInfo != null && columnFilterControl.FilterColumnInfo != null && c.FilterColumnInfo.Column == columnFilterControl.FilterColumnInfo.Column).FirstOrDefault(); if (ctrl != null) { ctrl.ResetVisibility(); } }
internal void RegisterOptionControl(ColumnFilterControl ctrl) { if (!Filters.Contains(ctrl)) { ctrl.PropertyChanged += _filterHandler; Filters.Add(ctrl); if (AfterFilterControlLoaded != null) { AfterFilterControlLoaded(this, new FilterControlLoadedEventArgs() { Grid = this, Control = ctrl }); } } }