Change the alignment of a cell in msflexgrid

How do I change the alignment in just a single cell in a MSHFlexGrid?
I use this command but it doesn't change the cell MSHFlexGrid1.CellAlignment = flexAlignLeftBottom.
I'm not sure that it is changing the correct cell. How do I select the proper cell?
I'm doing this in Visaul Basic
Thanks
whiwexAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ShauliCommented:
You have to define the col and the row, as in:

MSHFlexGrid1.Col =1
MSHFlexGrid1.Row=1
MSHFlexGrid1.CellAlignment = flexAlignLeftBottom

S

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SethiCommented:
As Shauli pointed out, to change the alignment of a single cell, you need to set the focus on that cell first by using the following:
MSHFlexGrid1.Col =1
MSHFlexGrid1.Row=1

Then use the cell alignment property:
MSHFlexGrid1.CellAlignment = flexAlignLeftBottom

In case you need to align the whole column then this is how you do it:
MSHFlexGrid1.ColAlignment(1) = flexAlignLeftCenter

To align Fixed columns:
MSHFlexGrid1.FixedAlignment(1) = flexAlignCenterCenter
samstarkeyCommented:
Or

MSHFlexGrid1.FixedAlignment(1) = 3

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.