WinUI.TableView

A light weight TableView component for WinUI3

MIT License

Stars
128

Bot releases are hidden (Show)

WinUI.TableView - v1.2.0 Latest Release

Published by w-ahmad 2 months ago

What's New

  • Introduced CellTemplateSelector and EditingTemplateSelector properties in TableViewTemplateColumn
  • Introduced MinColumnWidth and MaxColumnWidth properties in TableView to set min and max widths for all the columns. These properties can be overridden by setting MinWidth and MaxWidth properties for each column.
  • Added Visibility property for columns to hide or show columns at runtime
  • Added new properties in ComboBoxColumn
    • IsEditable makes the ComboBox editable.
    • TextBidning allow to bind ComboBox.Text property
    • SelectedValueBinding allow to bind ComboBox.SelectedValue.
  • Implemented column auto sizing by using GridLength as Width type. The default value for column is now set to GridLength.Auto.
  • Implemented cell selection support so user can select individual cells
  • Added new property SelectionUnit to choose selection behavior. Available options are:
    • CellOrRow (Default) user can select rows or cells according to the SelectionMode property'
    • Cell user can only select cells according to the SelectionMode property'
    • Row user can only select rows according to the SelectionMode property'
  • Exposed GenerateElement and GenerateEditingElement for columns.

Bug Fixes

  • Fixed an issue with short keys, sometime the short keys were not working at startup. #25
  • Fixed cell layout issue when the size was narrower than the desired width of cell. (temp fix until https://github.com/microsoft/microsoft-ui-xaml/issues/9860 fixed)
  • Improved code to pick right column type when auto generating columns.
  • Fixed an issue with cell width clamp in min & max widths.
  • Removed a separator at the end of options flyout when export options are hidden.

Breaking Changes

  • Setting columns widths from code-behind would need adjustments to use GridLength as width.
  • Some methods, events, and event argument classes have been renamed to better align with the manipulation of cell or row content:
    • GetSelectedRowsContent to GetSelectedContent
    • GetAllRowsContent to GetAllContent
    • OnExportSelectedRowsContent to OnExportSelectedContent
    • OnExportAllRowsContent to OnExportAllContent
    • ExportSelectedRowsContent to ExportSelectedContent
    • ExportAllRowsContent to ExportAllContent
    • TableViewExportRowsContentEventArgs to TableViewExportContentEventArgs

Known issues

Full Changelog: https://github.com/w-ahmad/WinUI.TableView/compare/v1.1.1...v1.2.0

WinUI.TableView - v1.2.0-preview2

Published by w-ahmad 3 months ago

What's New

  • Introduced CellTemplateSelector and EditingTemplateSelector properties in TableViewTemplateColumn
  • There won't be a separator at the end of options flyout when export options are hidden.

Bug Fixes

  • Fixed an issue where ComboBox of TableViewComboBoxColumn was not able to open.
  • Fixed an issue with short keys, sometime the short keys were not working at startup. #25
  • Fixed cell selection issue when there is an active column filter. (known issue from previous release)
  • Fixed cell layout issue when the size was narrower than the desired width of cell. (known issue from previous release)
  • Fixed an issue where cells were not able to select when there is only one column.

Known issues

  • Duplicate items in ItemsSource can lead to unexpected cell or row navigation behavior.

Full Changelog: https://github.com/w-ahmad/WinUI.TableView/compare/v1.2.0-preview1...v1.2.0-preview2

WinUI.TableView - v1.2.0-preview1

Published by w-ahmad 4 months ago

What's New

  • Introduced MinColumnWidth and MaxColumnWidth properties in TableView to set min and max widths for all the columns. These properties can be overridden by setting MinWidth and MaxWidth properties for each column.
  • Added Visibility property for columns to hide or show columns at runtime
  • Added new properties in ComboBoxColumn
    • IsEditable makes the ComboBox editable.
    • TextBidning allow to bind ComboBox.Text property
    • SelectedValueBinding allow to bind ComboBox.SelectedValue.
  • Implemented column auto sizing by using GridLength as Width type. The default value for column is now set to GridLength.Auto.
  • Implemented cell selection support so user can select individual cells
  • Added new property SelectionUnit to choose selection behavior. Available options are:
    • CellOrRow (Default) user can select rows or cells according to the SelectionMode property'
    • Cell user can only select cells according to the SelectionMode property'
    • Row user can only select rows according to the SelectionMode property'
  • Exposed GenerateElement and GenerateEditingElement for columns.

Breaking Changes

  • Setting columns widths from code-behind would need adjustments to use GridLength as width.
  • Some methods, events, and event argument classes have been renamed to better align with the manipulation of cell or row content:
    • GetSelectedRowsContent to GetSelectedContent
    • GetAllRowsContent to GetAllContent
    • OnExportSelectedRowsContent to OnExportSelectedContent
    • OnExportAllRowsContent to OnExportAllContent
    • ExportSelectedRowsContent to ExportSelectedContent
    • ExportAllRowsContent to ExportAllContent
    • TableViewExportRowsContentEventArgs to TableViewExportContentEventArgs

Known issues

  • Duplicate items in ItemsSource can lead to unexpected cell or row navigation behavior.
  • When the column width is too narrow for the cell's desired width, there would be some layout issues, resulting in the appearance of the right edge being clipped.

Full Changelog: https://github.com/w-ahmad/WinUI.TableView/compare/v1.1.1...v1.2.0-preview1

WinUI.TableView - v1.1.1

Published by w-ahmad 5 months ago

v1.1.0 Release Notes

  • Enhanced filter flyout functionality and user interface
  • Changed the default HeaderRowWidth from 48 to 32 (it was previously 32 until version 1.1.0).
  • Make the vertical scrollbar to display under the header row
  • Implemented auto resizing column by double clicking on resize area

Fixes

  • Fixed column header resize issue when CanFilter set to false
  • Fixed an issue where column resize was using next columns max & min width

Full Changelog: https://github.com/w-ahmad/WinUI.TableView/compare/v1.1.0...v1.1.1

WinUI.TableView - v1.1.0

Published by w-ahmad 6 months ago

v1.1.0 Release Notes

  • In filter flyout, use Contains instead of StartsWith when searching. (Thanks to @XamlBrewer ) #6
  • Removed package dependencies
  • New properties introduced in this release
    • TableView.IsReadOnly default is false, true makes all the columns read only.
    • TableView.CanUserSort default is true, false makes all the columns unsortable and exiting sorting will be cleared.
    • TableView.CanUserFilter default is true, false makes all the columns unfilterable and existing filter will be removed.
    • TableView.CanResizeColumns default is true, false makes all the columns not resizable.
    • TableView.ShowOptionsButton default is true, false will hide the OptionsButton.
    • TableView.HeaderRowHeight default value is set to 48.

Fixes

  • Major performance improvement in handling newly added items.
  • Fixed column header layout issues on resize. #3
  • 'Select All' command enable state is fixed based on the selection mode. #4
  • Copy or export selected items order in output is fixed #5
  • Fixed cell width bindings with their column

New Contributors

  • @BreeceW
  • @XamlBrewer

Full Changelog: https://github.com/w-ahmad/WinUI.TableView/compare/v1.0.0...v1.1.0

WinUI.TableView - v1.0.0

Published by w-ahmad 6 months ago

WinUI.TableView v1.0.0 Release Notes

Key Features

  • Auto Generate Columns
  • Excel like column filter
  • Export data to CSV or Implement your own export logic
  • Support columns sorting
  • Inline data editing

Enhancements

  • Implemented AutoGenerateColumns property change handlers
  • Added events for export and copy data to implement own logics
    • ExportAllRowsContent
    • ExportSelectedRowsContent
    • CopyToClipboard
WinUI.TableView - v1.0.0-preview4

Published by w-ahmad 7 months ago

  • AutoGenerateColumns is here like the most grid controls has and turned on by default. To turn it off set AutoGenerateColumns = false.
  • Export options are turned off by default to turn them on you can set ShowExportOptions = true.
  • Exposed to methods to implement custom export feature.
    GetAllRowsContent(bool includeHeaders, char separator)
    GetSelectedRowsContent(bool includeHeaders, char separator)
  • improvements to check for open flyouts on cell focus lost.
  • fixes some issues where keyboard accelerators where no working properly.
WinUI.TableView - v1.0.0-preview3

Published by w-ahmad 8 months ago

  • added feature to export rows to (comma delimited) csv file
  • fixed issues with column headers row
  • fixed an issue where MenuFlyouts icons were not visible on first open
WinUI.TableView - v1.0.0-preview2

Published by w-ahmad 8 months ago

-- added selected rows data copy to clipboard functionality
-- aligned sorting trigger with standard conventions
-- added options button for bound columns to sort and filter columns

WinUI.TableView - v1.0.0-preview1

Published by w-ahmad 9 months ago

v1.0.0-preview1

WinUI.TableView - v1.0.0-preview1

Published by w-ahmad 9 months ago

v1.0.0-preview1

Badges
Extracted from project README
ci-build cd-build nuget nuget
Related Projects