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> & lt; DataGridTemplateColumn Header = "Country" width = "{Binding Path = RealWide, ElementName = Grid}" IsReadOnly = "True" />

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.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -