How to implement ROW Collapse/Expand for TDBGrid

Please discuss general Delphi programming topics here.

How to implement ROW Collapse/Expand for TDBGrid

Postby magesh161 » November 15th, 2011, 6:58 am

I have to implement the expand/collapse option for rows in a TDBGrid.
Say, I need.

------------------------------------------------------------------------------------------
| Employee Type | Employee Type Description | Access Rights|
------------------------------------------------------------------------------------------
|+ ADM | Administrator | All |
|- LOC | Local | Read, Write |
| --------------------------------------------------------------
| Employee Code | Employee Name | DOB |
| --------------------------------------------------------------
| MAG | Mageswaran | 07-Aug-86
| ....................
| ....................
| ....................
| ---------------------------------------------------------------
|+ TMP | Temporary | Temp |
| ............................
| ............................
------------------------------------------------------------------------------------------

Here, the main row Employee Type (LOC) should able to expand/collapse the details with code (MAG), name(Mageswaran) % dob(07-Aug-86) of employees.
Could any one pls help me out in this?
magesh161
Member
Member
 
Posts: 1
Joined: November 15th, 2011, 6:36 am

Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron