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

Binding Combobox contents within a GridDataControl

Thread ID:





96493 Sep 16,2010 12:30 PM UTC Oct 12,2010 10:16 AM UTC Silverlight 2
Tags: GridControl
Trevor Tickner
Asked On September 16, 2010 12:30 PM UTC


I'm busy evaluation your data grid.
I've noticed all your ComboBox-in-cell examples bind the combobox contents to a static resource:


How would one bind the combobox contents (ItemsSource) to a (ObservableCollection) property on the data model assigned to the page.

E.g. (pseudo code)

class MyModel
List ItemsInGrid;
List LookupItemList;

in page code-behind, constructor:
DataContext = new MyModel();

in XAML, within GridDataControl, CellEditItemTemplate containing Combobox:

i.e. how do I bind to my DataContext.LookupItemList list?

Replied On September 29, 2010 11:36 AM UTC

Give some x:Name to your page (i use cotrolRoot everywhere for this)

Then just use ElementName binding:

Jeraldes J [Syncfusion]
Replied On October 12, 2010 10:16 AM UTC


Sorry for the delay caused.

Hi Pavel thanks for your update regarding this answer you provided.

Let us know if you need any other details.

Jeraldes J


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

This page will automatically be redirected to the 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