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

Different Cell types in one column of a RadGridView

2 Answers 59 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Adrian
Top achievements
Rank 1
Adrian asked on 07 Mar 2013, 10:12 AM
Hello,

I have a tricky problem this a RadGridView. I try to use a column with a simple string as content but in one row I need to use a ComboBox. So I have created a column with a StackPanel which has a TextBox and a ComboBox as content. Depending on the ItemSource of the GridView either the one or the other is collapsed.
Please take a look to the screen shot. The Text Cells shoud look like column 2 and the ComboBox like column 3. Very importent is some kind of event when a row/cell was changed. How can I combine the 2 approaches?

A demo project VS2010 can be found here:
http://ubuntuone.com/3eg74FGKERtYiHMTtRVwCq

Tanks for any help!
Adrian

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 07 Mar 2013, 11:18 AM
Hello,

 You can use CellTemplateSelector/CellEditTemplateSelector to achieve your goal in this case. 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Adrian
Top achievements
Rank 1
answered on 07 Mar 2013, 03:44 PM
Hello Vlad,
thank you a perfect solution. The link to the example was very useful.

Regards
Adrian
Tags
GridView
Asked by
Adrian
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Adrian
Top achievements
Rank 1
Share this question
or