Grid binding to ObservableCollection

I'm new to Syncfusion grids. I need some advice which grid to choose and where to start.

Requirements are:
  • There is an ObservableCollection of objects, which shall be displayed in the grid.
  • The grid shall update automatically if the collection of objects changes, or a property of one of the objects in the collection changes.
  • Some columns (properties of objects) shall be editable in the grid. Thus a two-way binding between the grid and the ObservableCollection.
I already tried a GridDataBoundGrid and setting the DataSource to the ObservableCollection. But no columns are shown in the grid. If I manually add an item to the grid's GridBoundColumns collection. this column gets shown, but it doesn't display the object data out of the ObservableCollection.

Please tell me where I should start. I'd appreciate it if all grid settings were made in code, not through the GUI designer.
Thanks a lot!

1 Reply

AK Arun Kumar V Syncfusion Team September 11, 2012 12:21 PM UTC

Hi Annemarie,

Thanks for the update.

By Setting the Griddataboundgrid to observable collection we can achieve the requested behavior.Please give us a sample code So that we could regenerate the code for you.

Regards,
Arun Kumar V

Loader.
Up arrow icon