Solved

delphi 4

Posted on 2013-06-26
3
238 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 38

Accepted Solution

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

628 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