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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using List as ItemsSource of GridData in WPF

Thread ID:





109838 Jul 7,2013 10:26 AM UTC Jul 25,2013 04:38 PM UTC WPF 1
Tags: GridControl
Asked On July 7, 2013 10:26 AM UTC

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. 

Gobinath A [Syncfusion]
Replied On 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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon