Data Scrolling Overview
- 2 minutes to read
Delivering outstanding performance and creating a visually stunning UI are two key elements of all WPF applications. The grid control provides multiple options for optimized record scrolling – each designed for specific use cases.
When working with large volumes of data onscreen (e.g. many columns and rows), you may experience screen jerks when scrolling through data rows. By activating the WPF DXGrid's Cascading Data Updates feature, you accelerate the grid and make vertical scrolling faster and smoother. When this feature is enabled, visible rows are asynchronously updated in a background thread, one row at a time.
With Per-Pixel Scrolling, grid rows can be scrolled smoothly and not on a 'record-by-record' basics.
This feature addresses issues involving data sets with many columns that cannot be completely displayed horizontally on screen. When enabled (the TableView.AllowHorizontalScrollingVirtualization property is set to true), the Grid Control processes data on an as-needed basis. It creates only those cells that are actually visible on screen. Once generated, these cells are then reused when the user scrolls the grid horizontally. The content outside the grid's view area is not processed. As a result, less memory is used, and less time is required for the grid's initial load. To learn more, see Table and TreeList View Scrolling in Code.
Freeze Scrollbar Position on Data Sorting
By default, changing the order of rows automatically scrolls the view to make the focused row visible onscreen. The DataViewBase.AutoScrollOnSorting option allows you to deactivate automatic scrolling to the focused row when sorting data. In this instance, a scroll bar's position is not changed when reordering rows.