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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Centering grid column text

Status
Not open for further replies.

gsfan

Technical User
May 20, 2005
22
0
0
US
Hi guys,

I've got one particular column in a grid in which I want to center the text. The ControlSource is a 25 byte character field, but contains text of variable length (0-25 chrs). When there are only a few characters (e.g. 5) the right padding in the table needs to be stripped away so the item will center properly. But the grid ControlSource property will not accept the ALLTR(CharStr).

How can I accomplish this?

TIA
 
Set the FORMAT property of the column to "T" (Trim leading trailing blanks).

Volker/
 
Many thanks, Volker. That's just what I needed.

Gil

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top