public DynamicGridColumn(DataGrid grid, IDynamicGridColumnInfo info) { _grid = grid; DynamicGrid.SetInfo(this, info); var notify = info as INotifyPropertyChanged; if (notify != null) { notify.PropertyChanged += InfoPropertyChanged; } }
internal CellManager(DataGrid grid, object source, IDynamicGridColumnInfo info) { _source = source; _info = info; var notify = info as INotifyPropertyChanged; if (notify != null) { notify.PropertyChanged += InfoPropertyChanged; } BindingOperations.SetBinding(this, DataPathProperty, new Binding { Path = new PropertyPath("(0)", DynamicGrid.DataPathProperty), Source = grid }); UpdateItems(); }
internal static void SetInfo(DataGridColumn element, IDynamicGridColumnInfo value) { element.SetValue(InfoProperty, value); }