Skip to content

w-ahmad/WinUI.TableView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinUI.TableView

WinUI.TableView is a lightweight and fast data grid control made for WinUI apps. It's derived from ListView so you will experience fluent look and feel in your project. It comes with all the essential features you need, plus extras like an Excel-like column filter, options buttons (for columns and the Table) and easy data export.

cd-build nuget

Features

  • Auto-generating Columns: Automatically generate columns based on the data source.
  • Copy row content: TableView allows you to copy row content, with the option to include or exclude column headers.
  • Editing: Modify cell content directly within the TableView by double tapping on a cell. image image
  • Sorting image
  • Excel-like Column Filter: A key feature that allows users to filter data within columns, enhancing data exploration and analysis. image
  • Export functionality: Built-in export functionality to export data to CSV format. This feature can be enabled by setting the ShowExportOptions = true. image Developers also have the flexibility to implement their own export functionality using two public methods provided:
    • GetRowsContent(bool includeHeaders, char separator): Retrieves the content of all rows in the table.
    • GetSelectedRowsContent(bool includeHeaders, char separator): Retrieves the content of selected rows in the table.

Available Column Types

  1. TableViewTextColumn
  2. TableViewCheckBoxColumn
  3. TableViewComboBoxColumn
  4. TableViewNumberColumn
  5. TableViewToggleSwitchColumn
  6. TableViewTemplateColumn

Limitations

  • Data Source Limitation: WinUI.TableView only accepts data sources that implements System.Collections.IList. This is because WinUI.TableView internally uses its own implementation of AdvancedCollectionView from the CommunityToolkit, which relies on IList-based collections.
  • Cell Selection: Cell selection is not currently supported but it's planned for the future release.

Dependencies

Contributing

We welcome contributions from the community! If you find any issues or have suggestions for improvements, please submit them through the GitHub issue tracker or consider making a pull request.

License

This project is licensed under the MIT License.