WPF DataGrid slow

  • Thread starter Thread starter Bill McCormick
  • Start date Start date
B

Bill McCormick

Hello,

I'm using a WPF DataGrid (contained in a UserControl) that, when
contained in a grid and scrollbars are not shown, is very slow to load
and present data to the user. At least *I think* it's the (lack of)
scroll bars; I've got a similar DataGrid (with a fair amount of records)
that loads much faster.


Thanks,


Bill
 
Bill said:
Hello,

I'm using a WPF DataGrid (contained in a UserControl) that, when
contained in a grid and scrollbars are not shown, is very slow to load
and present data to the user. At least *I think* it's the (lack of)
scroll bars; I've got a similar DataGrid (with a fair amount of records)
that loads much faster.
Well, just to follow up with myself - and leave this nugget of knowledge
for the next poor sole that encounters this problem - it does indeed
appear that having scrollbars makes a HUGE difference.

I got the scrollbars to show up by having <RowDefinition Height="*"/>
for the row that the DataGrid was placed (the last row in the Grid.) Now
things are speedy.

Bill
 
Back
Top