Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How to group two columns for DBGrid?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Jul 23, 2017 10:14 AM Last Post By: Krzysztof Szyszka
Fred Fonar

Posts: 137
Registered: 3/16/00
How to group two columns for DBGrid?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 21, 2017 2:19 PM
Is it possible to achieve this layout for DBGrid in design or in run time or I have to use other component:
_______________________________________________________________________
                  I                            |          2017        |  
    Part No  I     Part Name                   |_______________________| 
                  I                            |     Qty  |  Sales($) |
_________I______________|______ |_______________________________________|
 


I try to group Qty and Sales columns under "2017" column
Diego Rodrigues...

Posts: 11
Registered: 8/19/17
Re: How to group two columns for DBGrid?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 21, 2017 3:19 PM   in response to: Fred Fonar in response to: Fred Fonar
Fred Fonar wrote:
Is it possible to achieve this layout for DBGrid in design or in run time or I have to use other component:
_______________________________________________________________________
                  I                            |          2017        |  
    Part No  I     Part Name                   |_______________________| 
                  I                            |     Qty  |  Sales($) |
_________I______________|______ |_______________________________________|
 


I try to group Qty and Sales columns under "2017" column

This is not possible by default. TDBGrid cannot have such column (could by owner drawing, but resizing may not be that easy).
Krzysztof Szyszka

Posts: 78
Registered: 3/4/04
Re: How to group two columns for DBGrid? [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 23, 2017 10:14 AM   in response to: Diego Rodrigues... in response to: Diego Rodrigues...
Fred Fonar wrote:
Is it possible to achieve this layout for DBGrid in design or in run time or I have to use other
component:
_______________________________________________________________________
                  I                            |          2017        |
    Part No  I     Part Name                   |_______________________|
                  I                            |     Qty  |  Sales($) |
_________I______________|______ |_______________________________________|
 


I try to group Qty and Sales columns under "2017" column

This is not possible by default. TDBGrid cannot have such column (could by owner drawing, but
resizing may not be that easy).

It's possible in TDBGrid by default but only for ftADT field in data set.
You can create such layout for any type of fields but only in TXDBGrid.
You can show such layout at http://www.x-files.pl/download/index.html

--
pozdrowienia
Krzysztof Szyszka, X-Files Software
Developer of X-DBGrid Component
Embarcadero Technology Partner
http://www.x-files.pl/

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02