Solved

delphi 4

Posted on 2013-06-26
3
237 Views
Last Modified: 2013-08-15
in a drawgrid say grid1, i have 20 rows, 5 rows are related to item1, next 5 are related to item2, like wise last 5 rows related to item4.

now on a button click, i need to show in another tdrawgrid say grid2, only 5 rows :
all rows related to item 1 shall be shown in a single row, eg row 1
all rows related to item2 shall be shown in a singel row eg row2
like wise all row related to item 4 shall be show in single row eg row4

1 option in my mind is:
putting all rows related to item 1 in a stringlist lets say stringlist1
putting all rows related to item 2 in a stringlist lets say stringlist2
.........................................................like wise..............................
putting all row related to item 4 in a stinglist lets say stringlist4
show them in grid2.

?to implement?
0
Comment
Question by:AbhiJeet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 32

Assisted Solution

by:Ephraim Wangoya
Ephraim Wangoya earned 167 total points
ID: 39279307
Use two TClientDatasets
Create a master child relationship

When you click on master or move to master record via code, child records are automatically filtered. You can then draw whatever is on the child dataset on your grid.
0
 
LVL 27

Assisted Solution

by:Sinisa Vuk
Sinisa Vuk earned 167 total points
ID: 39284563
TVirtualTreeView have a great possibilities.
http://www.soft-gems.net/index.php/controls/virtual-treeview
0
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 166 total points
ID: 39289129
devexpress can nest grids
tms also has very good options
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question