New to Telerik UI for WPF? Download free 30-day trial

Enable Filtering in GridViewComboBoxColumn of RadGridView

Environment

Product Version 2021.2.511
Product RadGridView for WPF

Description

How to enable the editing and filtering of the RadComboBox of a GridViewComboBoxColumn in RadGridView.

Solution

To enable the editing, set the IsComboBoxEditable property of the GridViewComboBoxColumn to true. To enable also the filtering, set the IsFilteringEnabled property of the RadComboBox element to true.

<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding CountryId}" 
                                IsComboBoxEditable="True" 
                                SelectedValueMemberPath="Id" 
                                DisplayMemberPath="Name"> 
        <telerik:GridViewComboBoxColumn.EditorStyle> 
            <Style TargetType="telerik:RadComboBox"> 
                <Setter Property="IsFilteringEnabled" Value="True" />            
            </Style> 
    </telerik:GridViewComboBoxColumn.EditorStyle> 
</telerik:GridViewComboBoxColumn> 
In this article