We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Using List as ItemsSource of GridData in WPF

I have my old app in WPF and I'm using simple List<MyObject> like a ItemsSource of grid (regular grid from wpf). I have all logic which connect to WCF Service etc. In this list I have fresh data all time. And my grid in my app is reacting on changes in List<MyObject> and this list is reacting on changes in grid. (Twoway). 

But i want change my old regular grid to griddata from ver. and it's not work. I dont want changes all logic, create model, viewmodel etc. I want use the same List which i could use wiht my olg grid.

Can I use GridData to react on changes in List<MyObject> and vice versa ?

My old standard xaml is look like:
http://pastebin.com/C44DBwFF (ItemsSource=List<MyObject>)

MyOjbect contain:
bool properties1;
SomeClass object;

SomeClass object contain:
str Name, str Other1, str Other2

And it's all - have any OBservableCollection, EF, DataContext. 

1 Reply

GA Gobinath A Syncfusion Team July 25, 2013 04:38 PM UTC

Hi Jarek,


Sorry for the delay in getting back to you.


We have analyzed your query and we have prepared the sample in MVVM Pattern with ItemSource like list as you mentioned.


Please find the attached sample n the following location.


Sample: GDC_Sample.zip


Please let us know if you have any queries.



Gobinath A.


Live Chat Icon For mobile
Up arrow icon