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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ValueMember / DisplayMember in FilterBar

Thread ID:





5911 Jul 23,2003 04:53 PM UTC Aug 21,2003 08:48 AM UTC WinForms 3
Tags: GridControl
Markus Kraft
Asked On July 23, 2003 04:53 PM UTC

Hi, one column in my GDBG includes comboboxes with ValueMember and DisplayMember functionality. The FilterBar only displays the ValueMember of the ComboBoxes-Column. Is it possible to show the DisplayMember in the FilterBar, because the ValueMember includes only stupid Indexes? Thanks!

Administrator [Syncfusion]
Replied On July 23, 2003 10:18 PM UTC

Currently, you would have to derive GridFilterBar to get this functionality. Attached is a little sample. Our 2.0 grouping support will have other ways to handle this problem.

Replied On August 21, 2003 08:26 AM UTC

When I use this MyGridFilterBar : GridFilterBar in My Grid:when we choose combobox to multi-filter,always occur: Can'not execute equal to operation between System.Int32 and System.String Can you help me? My database is Access2000 Combo's DisplayMember is string type column, Combo's ValueMember is int type column, Thanks

Administrator [Syncfusion]
Replied On August 21, 2003 08:48 AM UTC

The sample in this trhead using an integer Valuemember and a string DisplayMember without a problem. Are you explicitly adding your own GridBoundColumns (and not using the Binder.Internal ones)? If so, make usre you set gridboundcolumn.StyleInfo.CellValueType = typeof(int) for the column with teh foriegn key combobox.


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

Live Chat Icon For mobile
Live Chat Icon