I am binding programatically to a GridViewComboBoxColumn (see C# below) and I am using the CellTemplate to display a RadComboBox instead of text. The problem is that I do not know how to set the ItemSource for the RadComboBox in order to make it work. Thanks in advance for any help!
((GridViewComboBoxColumn)this.RadGridView_TrusteeLedgers.Columns[1]).ItemsSource = trustees;
<
telerik:GridViewComboBoxColumn
Header
=
"Trustee"
DataMemberBinding
=
"{Binding TrusteeID}"
SelectedValueMemberPath
=
"TrusteeID"
DisplayMemberPath
=
"TrusteeCode"
Width
=
"60"
Name
=
"Trustee"
>
<
telerik:GridViewComboBoxColumn.CellTemplate
>
<
DataTemplate
>
<
telerik:RadComboBox
ItemsSource
=
"???"
SelectedValuePath
=
"TrusteeID"
telerikControls:Theming.Theme
=
"Office_Blue"
SelectedValue
=
"{Binding TrusteeID, Mode=TwoWay}"
DisplayMemberPath
=
"TrusteeCode"
/>
</
DataTemplate
>
</
telerik:GridViewComboBoxColumn.CellTemplate
>