ObservableTable is a 2D data structure designed to bind to a WPF DataGrid, allowing DataGrids to add/remove both rows and columns by changing the underlying ObservableTable.
- Allows multi-column collections
- Implements INotifyCollectionChanged and INotiftyPropertyChanged for both rows and columns
- Includes built-in undo and redo capabilities
- Provides a helper class to read from/write to CSV files
Class library (.dll
) available at releases.
In Visual Studio:
- Right-click your project
- Press Add > Project Reference
- Press Browse
- Import the
.dll
file
To initialize an ObservableTable:
ObservableTable<string> table = new(headers, records);
To import data from a CSV file:
ObservableTable<string> table = ObservableTableImporter.FromFilePath("path.csv");
To export data to a CSV file:
table.ToFile("path.csv");
For ObservableTable.IO
only, not required for ObservableTable<T>
itself.
Contributions are welcomed. Please open pull requests for changes.