MSFlexGrid and ColAlignment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • learningvbnet
    New Member
    • Dec 2007
    • 3

    MSFlexGrid and ColAlignment

    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:
    Code:
    grd1.Rows = iRow + 1
    grd1.ColAlignment(iCol) = flexAlignLeftTop
    grd1.TextMatrix(iRow, iCol) = "Total Licenses"
    grd1.ColWidth(iCol) = grd1.Width * 0.4
    Platform: Windows 2000
    Language: VB6
    Source Code: See snippet above
    Input Used: none
    Error Codes: none
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Originally posted by learningvbnet
    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:
    [CODE=VB]
    grd1.Rows = iRow + 1
    grd1.ColAlignme nt(iCol) = flexAlignLeftTo p
    grd1.TextMatrix (iRow, iCol) = "Total Licenses"
    grd1.ColWidth(i Col) = grd1.Width * 0.4
    [/CODE]

    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
    Last edited by Dököll; Dec 21 '07, 03:17 AM. Reason: text

    Comment

    Working...