Mahsa60
asked on
DBGRID title
hi
i have a question about DBGRID
i have some columns in my dbgrid
i wanna show my columns's title in 2 line, like this
-------------------------- ---------- --------
| project | project |
| number | name |
-------------------------- ---------- --------
i wrote this codes but it didnt work
DBGrid2.Columns.Items[0].T itle.Capti on:='proje ct' + #10 +'number';
what can i do for it
if i want to have my title in 2 seperated line what i must do
-------------------------- ---------- --------
| project |
-------------------------- ---------- --------
| number | name |
-------------------------- ---------- --------
plz help me
tanxfull
mahsa
i have a question about DBGRID
i have some columns in my dbgrid
i wanna show my columns's title in 2 line, like this
--------------------------
| project | project |
| number | name |
--------------------------
i wrote this codes but it didnt work
DBGrid2.Columns.Items[0].T
what can i do for it
if i want to have my title in 2 seperated line what i must do
--------------------------
| project |
--------------------------
| number | name |
--------------------------
plz help me
tanxfull
mahsa
http://www.torry.net/pages.php?id=527
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What you will have to do is to inherit from TCustomDBGrid and override the DrawCell procedure and then
modify the DrawTitleCell procedure to do the multi-line stuff.
modify the DrawTitleCell procedure to do the multi-line stuff.