asynchronous - WPF Combobox Category Grouping From Async Call -


i can able group data categories combobox while rendering {initialization} setting below code below

    _cboitem = new list<string>(); _cboitem=service.getdata();     collectionview cvs =     collectionview)collectionviewsource.getdefaultview(_cboitem); cvs.groupdescriptions.add(new  propertygroupdescription("category")); 

but if bind combbox async call, grouping not happening.

code below

    bindingoperations.enablecollectionsynchronization(_cbodoctype, _lock); task.factory.startnew(() => getdoctypeasync());      collectionview cv=(collectionview)collectionviewsource.getdefaultview(_cbodoctype);       cv.groupdescriptions.add(new propertygroupdescription("category"));       onpropertychanged("doctype"); 


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -