GridView style in the RadMultiColumnComboBox

1 Answer 5 Views
GridView MultiColumnComboBox
fabrizio
Top achievements
Rank 2
Iron
Veteran
fabrizio asked on 13 Nov 2025, 07:56 AM | edited on 13 Nov 2025, 07:58 AM
Good morning,
I can't figure out how to change the GridView style in the RadMultiColumnComboBox WPF. I'd like to change the text in the column header, for example, or the alternating columns, but I can't figure out how. I have the 2022 version of Telerik 2022 R3 SP1. I hadn't had any problems with WinForm, but I'm having some difficulty with WPF. Can someone tell me how to do it?
Thanks

1 Answer, 1 is accepted

Sort by
1
Accepted
Stenly
Telerik team
answered on 13 Nov 2025, 08:31 AM

Hello Fabrizio,

To achieve this requirement, you could create a global Style that targets the RadMultiColumnComboBox element and define a new Style targeting the RadGridView control in its Style.Resources collection. In the inner Style, you could configure the RadGridView control.

The following code snippet showcases this suggestion's implementation:

<Application.Resources>
    <Style TargetType="telerik:RadMultiColumnComboBox">
        <Style.Resources>
            <Style TargetType="telerik:RadGridView">
                <!-- Define required customizations -->
            </Style>
        </Style.Resources>
    </Style>
</Application.Resources>

Additionally, you could also retrieve the RadGridView control in code via the InitializeDropDownContentManager event. It can be retrieved via the DropDownElement property from the DropDownContentManager property of the event arguments:

private void RadMultiColumnComboBox_InitializeDropDownContentManager(object sender, Telerik.Windows.Controls.MultiColumnComboBox.DropDownContentManagerEventArgs e)
{
	var gridView = (RadGridView)e.DropDownContentManager.DropDownElement;
}

With this being said, I hope the provided information will be of help to you.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

fabrizio
Top achievements
Rank 2
Iron
Veteran
commented on 13 Nov 2025, 10:21 AM

Ok Thanks a lot
fabrizio
Top achievements
Rank 2
Iron
Veteran
commented on 13 Nov 2025, 11:04 AM | edited

Okay, sorry,
I'd like to ask you something else, if I may. I used cmbLotto_InitializeDropDownContentManager for the column header, and it worked fine. However, the RadMultiColumnComboBox no longer does the real-time search like it used to. All I had to do was type in the text field. How do I re-enable it? In the RadMultiColumnComboBox in WinForm, the search fields for each column were already set to "contains." Is this possible in WPF? Sorry, and thank you so much for your patience.        


  Private Sub cmbLotto_InitializeDropDownContentManager(sender As Object, e As DropDownContentManagerEventArgs) Handles cmbLotto.InitializeDropDownContentManager
      Dim combo = TryCast(sender, RadMultiColumnComboBox)
      Dim gridView = TryCast(e.DropDownContentManager.DropDownElement, RadGridView)
      If gridView Is Nothing Then Return

      ' 🔹 Personalizza il grid a runtime
      gridView.AutoGenerateColumns = False
      gridView.Columns.Clear()

      gridView.ShowScrollPositionIndicator = True


      gridView.Columns.Add(New GridViewDataColumn With {
        .Header = "Materiale",
        .DataMemberBinding = New Binding("Materiale"),
        .Width = 250
    })

      gridView.Columns.Add(New GridViewDataColumn With {
                  .Header = "Numero Lotto",
                  .DataMemberBinding = New Binding("NumeroLotto"),
                  .Width = 200
              })

      gridView.Columns.Add(New GridViewDataColumn With {
                  .Header = "Fornitore",
                  .DataMemberBinding = New Binding("Fornitore"),
                  .Width = 200
              })

      gridView.Columns.Add(New GridViewDataColumn With {
                  .Header = "Numero DDT",
                  .DataMemberBinding = New Binding("NumDDT"),
                  .Width = 200
              })

      gridView.Columns.Add(New GridViewDataColumn With {
               .Header = "Descrizione Completa",
               .DataMemberBinding = New Binding("DescrizioneCompleta"),
               .Width = 300
           })
  End Sub

Tags
GridView MultiColumnComboBox
Asked by
fabrizio
Top achievements
Rank 2
Iron
Veteran
Answers by
Stenly
Telerik team
Share this question
or