Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: DataGridControl Speed Improvement Suggestions?

$
0
0
Hi,

Virtualization is important and could be the main reason for the delay. Try re-enabling the virtualization and see how long it takes. I don't think the scrolling is that bad in the Xceed Datagrid with the virtualization enabled. Without virtualization, measures will be called for all cells (60 row x 35 columns) all the time.

Adding columns after the datagrid is initialized will surely affect the measures of each cells on every column add. Columns should be added to a collection and then the collection set to the DataGrid.ItemsSource to improve performances. Or maybe you could try to add the columns in a BeginInit - EndInit pass. By the way, the Full "Xceed DataGrid for WPF" includes a BatchUpdate to modify many columns in one batch. Look for sample "And more/BatchUpdating" in the "ClickOnce App" available here : http://xceed.com/Grid_WPF_Demo.html. You may try to add the columns at the very beginning of the application, before the Datagrid loads and see how long it takes.

You display 60 items, but you may have more in your data source. Speed could be affected if virtualizing is disabled and you have thousands of items in the source.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>