protected override void OnInitialized() { // connect column to the parent datagrid ParentDataGrid?.Hook(this); base.OnInitialized(); }
protected override void OnInitialized() { if (ParentDataGrid != null) { // connect column to the parent datagrid ParentDataGrid.Hook(this); if (FilterTemplate != null) { InitializeFilterContext(); } } // initialize temporary variables CurrentDirection = Direction; base.OnInitialized(); }
protected override void OnInitialized() { if (ParentDataGrid != null) { // connect column to the parent datagrid ParentDataGrid.Hook(this); if (Filter != null) { Filter.Subscribe(OnSearchValueChanged); } } // initialize temporary variables currentDirection[DataGridSortMode.Single] = Direction; currentDirection[DataGridSortMode.Multiple] = Direction; base.OnInitialized(); }