By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,059 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

MSFlexGrid and ColAlignment

P: 3
I do not know how to get certain cells to align left. No matter which ColAlignment I specify, the grid always shows me the text field centered.
Also, I tried having the alignment come before the entering the text and after.
What am I doing wrong? Please help me.

The code is as follows:
Expand|Select|Wrap|Line Numbers
  1. grd1.Rows = iRow + 1
  2. grd1.ColAlignment(iCol) = flexAlignLeftTop
  3. grd1.TextMatrix(iRow, iCol) = "Total Licenses"
  4. grd1.ColWidth(iCol) = grd1.Width * 0.4
  5.  
Platform: Windows 2000
Language: VB6
Source Code: See snippet above
Input Used: none
Error Codes: none
Dec 20 '07 #1
Share this Question
Share on Google+
1 Reply


Dököll
Expert 100+
P: 2,364
I do not know how to get certain cells to align left. No matter which ColAlignment I specify, the grid always shows me the text field centered.
Also, I tried having the alignment come before the entering the text and after.
What am I doing wrong? Please help me.

The code is as follows:
Expand|Select|Wrap|Line Numbers
  1. grd1.Rows = iRow + 1
  2. grd1.ColAlignment(iCol) = flexAlignLeftTop
  3. grd1.TextMatrix(iRow, iCol) = "Total Licenses"
  4. grd1.ColWidth(iCol) = grd1.Width * 0.4
  5.  
Platform: Windows 2000
Language: VB6
Source Code: See snippet above
Input Used: none
Error Codes: none
Hello, learningvbnet!

Can you go into it a little more? I took one look and could not understand what you are asking. You may be savvier in this than I am.

If you give me added info perhaps I can try to help.

Why do you need cells to be aligned? Looks like there are no errors, are there data in the cells upon the time you are trying to align...

...Nice bit of code, please add the rest of it also...
Might get better hits that way if one can run it:-)

Also is this related to both vb and vb.net? You may need to look in the .net area also for further support.

In a bit!

Dököll
Dec 21 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.