We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using Filters with Comboboxes

Thread ID:





115320 Jan 9,2014 08:25 PM UTC May 16,2014 11:32 AM UTC WPF 1
Tags: GridControl
Asked On January 9, 2014 08:25 PM UTC

I have a GridDataVisibleColumn with the MappingName="IssuerId".
<sf:GridDataVisibleColumn HeaderText="Issuer" MappingName="IssuerId" IsReadOnly="False" Width="125" >
         <sf:GridDataColumnStyle HorizontalAlignment="Center"/>
         <sf:GridDataColumnStyle CellType="ComboBox" DropDownStyle="AutoComplete"/>
In Code Behind I hook up the ItemsSource to my View Model list; DisplayMember, & ValueMember.
 this.grdImportBlotter.VisibleColumns["IssuerId"].ColumnStyle.ItemsSource = this.vm.Issuers;
 this.grdImportBlotter.VisibleColumns["IssuerId"].ColumnStyle.DisplayMember = "DealName";
 this.grdImportBlotter.VisibleColumns["IssuerId"].ColumnStyle.ValueMember = "DealId";
When I try to filter this column, the list that the user can filter on is a list of, what appears to be the ValueMember, rather than the DisplayMember.
How can I get the filter control to show the Name (DisplayMember) rather than the ValueMember (which is a Guid)?

Jai Ganesh S [Syncfusion]
Replied On May 16, 2014 11:32 AM UTC

Hi Andrew,


We are sorry for the delay.


We have analyzed your query. You can get the filter control based on DisplayMember by setting the “CanFormatExcelLikeFilterText “API as true in the GridDataVisibleColumn. Please find the code snippet to illustrate this,


Code Snippet [XAML]:


<syncfusion:GridDataVisibleColumn HeaderText="Issuer" CanFormatExcelLikeFilterText="True" MappingName="IssuerId" IsReadOnly="False" Width="125" >



           <syncfusion:GridDataColumnStyle HorizontalAlignment="Center"/>




           <syncfusion:GridDataColumnStyle CellType="ComboBox" DropDownStyle="AutoComplete"/>





Please let us know if you need further assistance.


Thank you,

Jai Ganesh S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon