c# - Multithreading with the WPF DataGrid? -
c# - Multithreading with the WPF DataGrid? -
i have wpf datagrid binded dataset via datagrid's itemssource property in program. current setup, having load-time issues cause gui lock up. possible multithread loading of datagrid populate rows loaded instead of loading rows , populating datagrid currently?
i'm new concept of multithreading, help appreciated!
the problem access ui controls need be on ui thread, info binding it's hard work in separate thread otherwise relatively easy. in fact case requires bit of trickery.
there's illustration here shows how accomplish using info virtualization:
http://www.codeproject.com/kb/wpf/wpfdatavirtualization.aspx
this solution makes utilize of fact when itemscontrol bound ilist implementation, rather ienumerable implementation, not enumerate entire list, , instead accesses items required display. uses count property determine size of collection, presumably set scroll extents. iterate through onscreen items using list indexer. thus, possible create ilist can study have big number of items, , yet retrieve items when required.
c# wpf multithreading datagrid rows
Comments
Post a Comment