Problems with DataGrid Scrolling

Feb 17, 2009 at 4:22 PM
Hi all,
I have a DataGrid. I have code that sets each DataGridRow's Header to a particular string such that every single header row in the DataGrid displays the name of a product (I do it trough the LOADING ROW EVENT). For whatever reason I am having problems scrolling. It's hard to explain really but basically what is happening is that as I am scrolling vertically down using the "down" arrow button of the scrollbar, once I start getting close to the "end" of the DataGrid the thumb position starts moving randomly up and down and does not follow the scroll instruction I am giving it by clicking on the "down" arrow scroll button.
Any IDEA to solve the problem?

I think that the problem is that DATAGRID not load all the rows, but only those are visible.... so when I scroll Up&Down something strange happens.... Is there a way to tell the datagrid to load ALL the ROWS at the beginning of the initialization?....
Feb 18, 2009 at 8:43 AM
Try disabling row virtualization.
Feb 18, 2009 at 9:36 AM

Thanks... it was the virtualization that creates that strange effect.

I have set



and the problem magically disappears!! 
Not very good in performance, beacause there is a big initial loading... but when loaded is perfect!