Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to right align numbers in a TStringGrid

Status
Not open for further replies.

hennep

Programmer
Dec 10, 2000
429
I would like to align text in a TStringGrid. Not only the numbers in the cells but also the caption in the first (fixed) row.
The only thing I could think of is to add spaces in front of the number. This does not work with the caption in the first row when the user can change ColWidth run-time.

Any ideas?
 
See if this article helps.


James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
thanks alot James,

I've just read the article and it sound promising.
I will try this I home.

 
thanks a lot James,

I've just read the article and it sounds promising.
I will try this at home.

(sorry for the typo's)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top