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

GridGrouping Control, "flattening" master detail...

Thread ID:





28631 May 5,2005 06:30 PM UTC May 5,2005 07:58 PM UTC WinForms 5
Tags: GridControl
Administrator [Syncfusion]
Asked On May 5, 2005 06:30 PM UTC

(Using v3.2.1.0) I''ve got a master/detail dataset that I''m displaying in a grid grouping control. I would like to display the first detail record on the same row as the master record, sort of "flattening" out the groups. The problem is that I still want to suppress redundant fields from the master record, and only display them after a "group" break. Uh, this is probably confusing, so I''ll sketch it out: CompanyName1 Order#1 OrderQty Order#2 OrderQty Order#3 OrderQty CompanyName2 Order#1 OrderQty Order#2 OrderQty ...and so on. Is there a good way to do this with the GridGrouping control? Or should I be using some feature of a regular databound grid. Thanks, s.s.

Administrator [Syncfusion]
Replied On May 5, 2005 06:32 PM UTC

Some formatting was lost in the above post. It should really show the Order# and OrderQty columns as being "aligned" for all rows.

Administrator [Syncfusion]
Replied On May 5, 2005 06:43 PM UTC

Do you still want to be able to collapse and expand the master rows? Or, are they always expanded? If they are always expanded, it might be easier to do this if you think of adding the master information to the first row of the details, and not thinking about it as adding the first row of the details to the master row. Depending upon whether you need the +/- available, maybe I can suggest something.

Administrator [Syncfusion]
Replied On May 5, 2005 06:46 PM UTC

No, I do not need to be able to expand/collapse the groups. It''s more like a single result set, with duplicates suppressed. Thanks, s.s.

Administrator [Syncfusion]
Replied On May 5, 2005 07:46 PM UTC

Here is a try at this using a GriddataBoundGrid. http://www.syncfusion.com/Support/user/uploads/GDBG_Flattened_bd87ea90.zip

Administrator [Syncfusion]
Replied On May 5, 2005 07:58 PM UTC

Wow. Thanks, I''m going through your example right now. Have I mentioned how fantastic Syncfusion support is? Later, s.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

or the page will be automatically redirected to 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