I have a RadGridView with a GridViewComboBoxColumn. The GridViewComboBoxColumn displays two columns when it drops down. I would like to show headers for each column inside the ComboBox so that the user can sort the lists by either column.
However, I am unable to display the headers.
Here is my code:
<
telerik:RadGridView
Grid.Row
=
"1"
Name
=
"mainGridView"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewComboBoxColumn
UniqueName
=
"NominalAccount"
Header
=
"Nominal Account"
Width
=
"*"
DataMemberBinding
=
"{Binding RefCode}"
ItemsSource
=
"{Binding NominalAccountsItemList, Mode=TwoWay}"
DisplayMemberPath
=
"DisplayName"
SelectedValueMemberPath
=
"RefCode"
>
<
telerik:GridViewComboBoxColumn.ItemTemplate
>
<
DataTemplate
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
></
ColumnDefinition
>
</
Grid.ColumnDefinitions
>
<
TextBlock
Text
=
"{Binding RefCode}"
Padding
=
"0,0,6,0"
></
TextBlock
>
<
TextBlock
Text
=
"{Binding NominalAccountName}"
Grid.Column
=
"1"
></
TextBlock
>
</
Grid
>
</
DataTemplate
>
</
telerik:GridViewComboBoxColumn.ItemTemplate
>
</
telerik:GridViewComboBoxColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
Any help on how to get headers for my columns in the dropdown would be much appreciated!
Thanks in advance