WinUI.TableView
1.2.0-preview2
See the version list below for details.
dotnet add package WinUI.TableView --version 1.2.0-preview2
NuGet\Install-Package WinUI.TableView -Version 1.2.0-preview2
<PackageReference Include="WinUI.TableView" Version="1.2.0-preview2" />
paket add WinUI.TableView --version 1.2.0-preview2
#r "nuget: WinUI.TableView, 1.2.0-preview2"
// Install WinUI.TableView as a Cake Addin #addin nuget:?package=WinUI.TableView&version=1.2.0-preview2&prerelease // Install WinUI.TableView as a Cake Tool #tool nuget:?package=WinUI.TableView&version=1.2.0-preview2&prerelease
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.
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.
- Sorting
- Excel-like Column Filter: A key feature that allows users to filter data within columns, enhancing data exploration and analysis.
- Export functionality: Built-in export functionality to export data to CSV format. This feature can be enabled by setting the
ShowExportOptions = true
.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
- TableViewTextColumn
- TableViewCheckBoxColumn
- TableViewComboBoxColumn
- TableViewNumberColumn
- TableViewToggleSwitchColumn
- 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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows10.0.19041 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
-
net6.0-windows10.0.19041
- CommunityToolkit.WinUI.Behaviors (>= 8.0.240109)
- Microsoft.WindowsAppSDK (>= 1.5.240227000)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.0 | 211 | 8/14/2024 |
1.2.0-preview2 | 87 | 7/9/2024 |
1.2.0-preview1 | 92 | 6/18/2024 |
1.1.1 | 296 | 5/19/2024 |
1.1.0 | 154 | 5/5/2024 |
1.0.0 | 146 | 4/20/2024 |
1.0.0-preview4 | 100 | 3/26/2024 |
1.0.0-preview3 | 74 | 3/5/2024 |
1.0.0-preview2 | 79 | 2/18/2024 |
1.0.0-preview1 | 84 | 2/4/2024 |