-
Notifications
You must be signed in to change notification settings - Fork 18
Home
Radu Martin edited this page Apr 15, 2017
·
18 revisions
These extenders simplify the work with data-bound in WinForms.
gridView.GenerateColumns(DataSource,
new ColumnDataDescriptor("Header1", "Column1Name"),
new ColumnDataDescriptor("Header2", "Column2Name"),
new ColumnDataDescriptor("Header3", "Column3Name", FillWeight: 100));
gridView.PrepareStyleForEditingData();
gridView.AddDataRowStateDrawingInRowHeaders();
layoutPanel.GenerateGroups(DataSource,
new GroupDataDescriptor("GroupName1",
new FieldDataDescriptor("Header1", "Column1Name"),
new FieldDataDescriptor("Header2", "Column2Name")),
new GroupDataDescriptor("GroupName2",
new FieldDataDescriptor("Header3", "Column3Name")));
layoutPanel.GenerateFields(DataSource,
new FieldDataDescriptor("Header1", "Column1Name"),
new FieldDataDescriptor("Header2", "Column2Name"),
new FieldDataDescriptor("Header3", "Column3Name"));
DataViewExtenders use special things that were introduced in .NET Framework 4.0:
- Extension Methods (introduced in .NET Framework 3.5)
- String.IsNullOrWhiteSpace method
- Tuple Class
Extenders:
DataGridView
DataGridViewColumn
FlowLayoutPanel
TableLayoutPanel
Features:
SelectItemForm
Settings
Components:
BitMaskCheckedListBox
HeaderTableLayoutPanel
SelectItemForm