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

How to change alignments in MSHFlexiGrid ?

Status
Not open for further replies.

pna3

Programmer
Dec 5, 2003
21
IN
I am using the Microsoft Hierchical FlexiGrid Report option in VB to generate a report on the Screen for the User to view.

I want to make alignment changes to text in certain columns.

How do i do this?

plz help. this is very urgent
 
MSHFlexGrid1.ColAlignment(3) =flexAlignRightCenter
 
You can also set the alignment in the formatstring property (if used). For example,

Code:
grid.formatstring = &quot;<Col1  |^Col2  |>Col3  &quot;

'<' aligns the entire column to the left, '^' aligns center and '>' aligns right. This can be done at design time or at run time.

Take Care,

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top