Exclude Column from Search

GridViewBoundColumnBase provides a mechanism for it to be excluded from the search mechanism. This can be achieved through its IsSearchable property. It is available as of R2 2018. Its default value is True, meaning that the column will be included in the search operation. When set to False the column will not take part in the searching.

Figure 1: RadGridView without having the IsSearchable set to none of its columns

gridview-howto-exclude-column-from-search

Example 1: Setting the IsSearchable property to False

    <telerik:RadGridView Grid.Row="0" 
                         ItemsSource="{Binding Clubs}" 
                         ShowSearchPanel="True" 
                         AutoGenerateColumns="False" 
                         GroupRenderMode="Flat"> 
        <telerik:RadGridView.Columns> 
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"  
                                        IsSearchable="False"/> 
            <telerik:GridViewDataColumn DataMemberBinding="{Binding City}"/> 
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Established}"  
                                        Header="Est" 
                                        DataFormatString="{}{0:yyyy}"/> 
            <telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}"  
                                        Header="Stadium" 
                                        DataFormatString="{}{0:N0}"/> 
        </telerik:RadGridView.Columns> 
    </telerik:RadGridView> 

Figure 2: RadGridView with having the IsSearchable set to one of its columns

gridview-howto-exclude-column-from-search

See Also

In this article
Not finding the help you need? Improve this article