[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 761
  • Last Modified:

StringGrid Title

Dear experts,

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

Thanks!
0
ericting
Asked:
ericting
  • 3
  • 2
1 Solution
 
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
 
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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:
>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:
hum, sorry, saw not your comments before, calinutz
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now