WPF DataGrid slow

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
 
B

Bill McCormick

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top