WPF how to make datagrid column width to detect largest item? -
That's why I have a Detagrid have been working with the set that I follows property width: < Pre> Now display column width is really suited for the large object, but only if it is shown Indeed grid width grows when I larger items than appear before To be scrolled. How can I find the largest item in the archive and always optimize the width of the grid, even if it has not been displayed yet? I think you have ScrollToEnd method will have to wait until Datagrid load and later Datarids Scrollviewer Call. & lt; DataGridTemplateColumn Header = "Country" width = "{Binding Path = RealWide, ElementName = Grid}" IsReadOnly = "True" />
Comments
Post a Comment