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

Grouping by display member

Thread ID:





21450 Nov 10,2004 07:06 PM UTC Nov 10,2004 08:08 PM UTC WinForms 3
Tags: GridControl
Bernard Herrok
Asked On November 10, 2004 07:06 PM UTC

Hi, I have a group grid and i have made my grouping cell into a databound combobox. In the group header caption, it displays the value member. How do i make it pick up the display member of the comboxbox?

Administrator [Syncfusion]
Replied On November 10, 2004 07:48 PM UTC

In the upcoming version 3.0 (it will be out any day now ...) we do have extensive support for foreign keys. You can then simply group by the display member. With the existing 2.x version it is a bit tricky. You could add a unbound field, handle the QueryValue event for that field and then group by the unbound field. The field can be hidden from the VisibleColumns collection so that it does not appear twice. Stefan

Bernard Herrok
Replied On November 10, 2004 08:00 PM UTC

Will version 3 be backward compatible? Or do we have to reprogram, the grid and their properties? Do you have a sample handy for your sugestion above?

Administrator [Syncfusion]
Replied On November 10, 2004 08:08 PM UTC

Hi Bernard, yes - it will be mostly backward compatible so you only have to recompile your application. Attached find a sample that adds a unbound field to do the mapping. You can group by this unbound field and at the same time hide it in your columns collecion. The sample also handles QueryCoveredRange and disables the covering for the TopLevelGroup caption - you can simply ignore that code ... Stefan UnboundField_1932.zip


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