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.
Unfortunately, activation email could not send to your email. Please try again.

Grouping by display member

Thread ID:

Created:

Updated:

Platform:

Replies:

21450 Nov 10,2004 02:06 PM Nov 10,2004 03:08 PM Windows Forms 3
loading
Tags: GridControl
Bernard Herrok
Asked On November 10, 2004 02:06 PM

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 02:48 PM

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 03:00 PM

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 03:08 PM

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

CONFIRMATION

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.

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.

;