ItemsControl that loads items one by one asynchronously.
Posted
by Vinit Sankhe
on Stack Overflow
See other posts from Stack Overflow
or by Vinit Sankhe
Published on 2010-05-06T09:15:09Z
Indexed on
2010/05/06
9:18 UTC
Read the original article
Hit count: 294
Hey Guys,
I am creating a custom DataGrid by deriving the traditional tookit based WPF DataGrid. I want a functionality in the grid to load items one by one asynchronously, wherein as soon as ItemsSource is changed i.e. a new collection is Set to the ItemsSource property or the bound collection is Changed dues to items that rae added, moved or removed (wherein the notifications comes to the data grid when the underlying source implements INotifyCollectionChanged such as ObservableCollection).
This is because even with virtualising stackpanel underneath the datagrid takes time to load (2-3 seconds delay) to load the data rows when it has several columns and some are template based. With above behavior that delay would "appear" to have reduced giving datagrid a feel that it has the data and is responsive enough to load it.
How can I achieve it?
Thx Vinit.
© Stack Overflow or respective owner