protected override void OnInitialized() { if (DataGrid == null) { throw new ArgumentNullException(nameof(DataGrid), "DataGridColumn must in DataGrid"); } if (IsCheckBox) { CheckItemSet = new HashSet <TItem>(); } base.OnInitialized(); DataGrid.AddColumns(this); }