StringGrid Title

Dear experts,

Could any expert tell me how to set the column title of a stringgrid at the design stage?

Thanks!
erictingAsked:
Who is Participating?
 
kretzschmarConnect With a Mentor Commented:
>Is there any propertities of stringgrid to set the title, font, etc. just >like the dbgrid.

no, not on the standard tstringgrid, but you may find a free tstringgrid descandend at

http://www.torry.net/pages.php?id=114

which provides what you need

meikl ;-)
0
 
kretzschmarCommented:
stringgrid1.cells[0,YourColumnIndex] := 'YourCaption';

meikl ;-)
0
 
erictingAuthor Commented:
Meikl,

Thank  you for your answer but I want to see the title during the design time so I can easily change the column width.

Is there any propertities of stringgrid to set the title, font, etc. just like the dbgrid.

Eric Ting,
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
calinutzCommented:
I suggest that you use another stringgrid that allows this bevaviour. Such as
kStringGrid from http://www.korzh.com/download.
It is very easy to work with (a lot easyer than the standard stringGrid and allows coloring rows odd and even differently for a better look)
It behaves just like DBGrid with column titles
0
 
calinutzCommented:
Actualyy the download link is:
http://www.korzh.com/download/kstrgrid.zip
and you need the additional pack
http://www.korzh.com/download/kprocs.zip

Both installed and used do not increase your application size significantly.... only a few kilos.
0
 
kretzschmarCommented:
hum, sorry, saw not your comments before, calinutz
0
All Courses

From novice to tech pro — start learning today.