public DynamicGridColumn(DataGrid grid, IDynamicGridColumnInfo info)
        {
            _grid = grid;
            DynamicGrid.SetInfo(this, info);
            var notify = info as INotifyPropertyChanged;

            if (notify != null)
            {
                notify.PropertyChanged += InfoPropertyChanged;
            }
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 internal static void SetInfo(DataGridColumn element, IDynamicGridColumnInfo value)
 {
     element.SetValue(InfoProperty, value);
 }