Class TableDataContext<T>
public class TableDataContext<T> : RangeDesignDataContextBase<DataGridDesignPresenter>, INotifyPropertyChanged, IDisplayer, IDesignDataContext
Type Parameters
T
- Inheritance
-
TableDataContext<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
TableDataContext(IEnumerable<T>, IEnumerable<ColumnPropertyInfo>)
public TableDataContext(IEnumerable<T> itemsSource, IEnumerable<ColumnPropertyInfo> columnPropertyInfos)
Parameters
itemsSource
IEnumerable<T>columnPropertyInfos
IEnumerable<ColumnPropertyInfo>
TableDataContext(IEnumerable<T>, int)
public TableDataContext(IEnumerable<T> itemsSource, int visibleCount = 0)
Parameters
itemsSource
IEnumerable<T>visibleCount
int
Properties
ColumnPropertyInfos
[Display(Name = "列头设置")]
public IEnumerable<ColumnPropertyInfo> ColumnPropertyInfos { get; }
Property Value
ItemsSource
[Browsable(false)]
public IEnumerable<T> ItemsSource { get; }
Property Value
- IEnumerable<T>
Methods
RefreshPresenter(DataGridDesignPresenter)
public override void RefreshPresenter(DataGridDesignPresenter presenter)
Parameters
presenter
DataGridDesignPresenter