Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

delphi 4

Posted on 2013-06-26
3
Medium Priority
?
252 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
3 Comments
 
LVL 32

Assisted Solution

by:Ephraim Wangoya
Ephraim Wangoya earned 501 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 28

Assisted Solution

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

Accepted Solution

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

877 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