This is a migrated thread and some comments may be shown as answers.

How to bind different sources to combos in grids

2 Answers 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 23 Apr 2012, 01:38 PM

I have a grid in which comboboxes are shown in each row to allow for selection of color for the item in that row.

Now we wish to have different lists of colors depending on the row; i.e. the itemssource for the comboboxes are no longer the same.

Before I had a single color-list on the viewmodel for the grid and xaml-databound-bound the comboboxes to that.

How do I get different itemssources for the comboboxes?

Thanks for any input,

Anders, Denmark

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 23 Apr 2012, 01:40 PM
Hello Anders,

 Have you tried ItemsSourceBinding property of GridViewComboBoxColumn? 

Kind regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Anders
Top achievements
Rank 1
answered on 24 Apr 2012, 12:10 PM
I had not -- but precisely what I was looking for!

Thanks!

Anders, Denmark
Tags
GridView
Asked by
Anders
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Anders
Top achievements
Rank 1
Share this question
or