Skip to content
Discussion options

You must be logged in to vote

@Georgios1999 yes TableView creates date time columns for the DateOnly and TimeOnly automatically. for the ComboBox and ToggleSwitchcolumns, these columns are not generated automatically, but you can hook to the AutoGeneratingColumn event to see what type of column it will create for each property type. If you find the column inappropriate for the type, you can assign any column to the args.Column property within the event handler or can change behavior of the generated column as I do in SampleApp.
https://github.com/w-ahmad/WinUI.TableView.SampleApp/blob/41ff56cdf69f2ebc048846fb430c9a000cf2e21f/src/WinUI.TableView.SampleApp/ExampleModelColumnsHelper.cs#L7

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Georgios1999
Comment options

@w-ahmad
Comment options

Answer selected by Georgios1999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants