May 29, 2006 #1 drimades IS-IT--Management Joined Nov 8, 2004 Messages 221 Location MK How can I set the alignment of a cell in a MSHFlexGrid. Can I do it for the entire grid?
May 29, 2006 #2 Golom Programmer Joined Sep 1, 2003 Messages 5,595 Location CA Use the CellAlignment or ColAlignment methods as in Code: FlexGrid.CellAlignment = flexAlignLeftCenter FlexGrid.ColAlignment(1) = flexAlignLeftCenter [small]No! No! You're not thinking ... you're only being logical. - Neils Bohr[/small] Upvote 0 Downvote
Use the CellAlignment or ColAlignment methods as in Code: FlexGrid.CellAlignment = flexAlignLeftCenter FlexGrid.ColAlignment(1) = flexAlignLeftCenter [small]No! No! You're not thinking ... you're only being logical. - Neils Bohr[/small]
May 29, 2006 #3 zemp Programmer Joined Jan 27, 2002 Messages 3,301 Location CA You can also set the coloumn alignment with the formatstring property and the '<', '>' and '^' characters. Code: MSFlexGrid1.FormatString = "<Col1 |>Col2 |^Col3 " zemp Upvote 0 Downvote
You can also set the coloumn alignment with the formatstring property and the '<', '>' and '^' characters. Code: MSFlexGrid1.FormatString = "<Col1 |>Col2 |^Col3 " zemp