Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Hiding columns in XamDataGrid is slow
posted

We have a XamDataGrid with 100 columns and 4000 rows.   We made a column chooser control that allows the user to hide and show columns.  Hiding a column by setting the Field.Visibility = Collapsed takes several seconds on a fast machine and over 5 seconds on a slower one.  if we set the ColMaxWidth = 0 instead, then it's much faster, but that's not the same as making the column invisible.  We also tried removing the column from the FieldLayout, but that was just as slow.  Any suggestions on making column hiding and showing faster?  I have a simple test application that binds to a DataTable that shows the issue if you need it.