Autogenerate GridViewComboBoxColumn

1 posts, 0 answers
  1. New
    New avatar
    8 posts
    Member since:
    Nov 2012

    Posted 23 Jan 2013 Link to this post

    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.

Back to Top