Results 1 to 3 of 3

Thread: MSHflexgrid alignment

  1. #1
    Addicted Member
    Join Date
    Jul 11
    Posts
    214

    MSHflexgrid alignment

    hi friends I want to align my mshflexgrid to center;I tried

    Private Sub Form_Load()
    Dim i As Integer
    For i = 1 To MSHFlexGrid1.Rows - 1
    MSHFlexGrid1.CellAlignment = flexAlignCenterCenter
    Next i
    End Sub

    but nothing happend ,what's wrong?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 02
    Location
    Bristol, UK
    Posts
    35,628

    Re: MSHflexgrid alignment

    Cell based properties (such as CellAlignment) only affect the currently selected cell(s), as specified by .Row/.Col (and .RowSel/.Colsel).

    If you want to change the alignment of cells in an entire column, use .ColAlignment

    For a 'random' range of cells, specify .Row/.Col (and .RowSel/.Colsel) as apt, and use .CellAlignment.

  3. #3
    Addicted Member
    Join Date
    Jul 11
    Posts
    214

    Re: MSHflexgrid alignment

    thank u ,im gonna try what you said

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •