Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.18 KB

README.md

File metadata and controls

41 lines (32 loc) · 1.18 KB

ObservableTable

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.

Features

  • 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

Installation

Class library (.dll) available at releases.

In Visual Studio:

  • Right-click your project
  • Press Add > Project Reference
  • Press Browse
  • Import the .dll file

Usage

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");

Requirements

For ObservableTable.IO only, not required for ObservableTable<T> itself.

Contributing

Contributions are welcomed. Please open pull requests for changes.