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!

Text Alignment in HFlexgrid

Status
Not open for further replies.

gadgetguy1111

IS-IT--Management
Mar 19, 2002
20
0
0
SG
hello,

i want to have the string displayed in a cell (using textmatrix)in a HFlexgrid to be aligned to the left.

i have tried using formatstring &quot;<col1|<col2&quot; but only the header row is left aligned and not the other rows.

columnheaders are turned on.

any idea what is wrong?

thanks
 
You might try this

grdGrid.Row = RowNumber
grdGrid.Col = ColNumber
grdGrid.CellAlignment = flexAlignLeftCenter

Other alignment options are the following


flexAlignLeftTop 0 The cell content is aligned left, top.
flexAlignLeftCenter 1 Default for strings. The cell content is aligned left, center.
flexAlignLeftBottom 2 The cell content is aligned left, bottom.
flexAlignCenterTop 3 The cell content is aligned center, top.
flexAlignCenterCenter 4 The cell content is aligned center, center.
flexAlignCenterBottom 5 The cell content is aligned center, bottom.
flexAlignRightTop 6 The cell content is aligned right, top.
flexAlignRightCenter 7 Default for numbers. The cell content is aligned right, center.
flexAlignRightBottom 8 The cell content is aligned right, bottom.
flexAlignGeneral 9 The cell content is of general alignment. This is &quot;left, center&quot; for strings and &quot;right, center&quot; for numbers.
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top