Replies: 3 comments 6 replies
-
|
When columns are auto-generated, their width is set to |
Beta Was this translation helpful? Give feedback.
-
|
Just tried it and noticed an issue with auto-sizing when the item count is small. I’ll work on fixing it in a future release. For filling columns to the available size, the column width is of type private void TableView_AutoGeneratingColumn(object sender, TableViewAutoGeneratingColumnEventArgs e)
{
e.Column.Width = new GridLength(1, GridUnitType.Star);
} |
Beta Was this translation helpful? Give feedback.
-
|
That right margin is maybe coming due to the hidden row's header width. I'll check it up. The built-in text column is not set to show eclipses. you can try it with templated column with own data template or override the existing text column with your own display element. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I can see
WinUI.TableView/src/TableViewHeaderRow.cs
Line 276 in 3c3abe4
But I can't work out how to set up a table to set up columns to autostretch - I am just using ItemsSource="{x:Bind ViewModel.Items}" so I'm not setting widths on any columns directly
Beta Was this translation helpful? Give feedback.
All reactions