May 29, 2006 #1 drimades IS-IT--Management Nov 8, 2004 221 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 Sep 1, 2003 5,595 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 Jan 27, 2002 3,301 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