-
Jul 31st, 2012, 03:37 PM
#1
Addicted Member
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?
-
Jul 31st, 2012, 03:41 PM
#2
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.
-
Jul 31st, 2012, 04:06 PM
#3
Addicted Member
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
-
Forum Rules