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

Autogenerate GridViewComboBoxColumn

0 Answers 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
New
Top achievements
Rank 1
New asked on 23 Jan 2013, 10:55 PM
Hi Telerik,

I have a RadGridView with a DataTable dt as ItemsSource. Since dt is dynamic, I cannot define the columns in XAML. As a result, I set AutoGenerateColumn to true.

One trouble I have, however, is that a few of these columns are foreign keys and I would like to set those columns to be GridViewComboBoxColumns instead of the standard GridViewBoundColumn for strings. Unfortunately, it appears that GridViewComboBoxColumns (along with others like GridViewHyperLinkColumns, etc) are never actually autogenerated regardless of data type.

Is there any way I can hijack the column generation process to ensure a GridViewComboBoxColumn is generated when needed? All I really need is a combo box that lets me choose the value for cells in particular columns.

Thanks.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
New
Top achievements
Rank 1
Share this question
or