hi experts,
actuly the numbers aligned into right automaticaly, how to change them as text format in flexgrid? and also tell me abt how to use alignment pls.
thanks
Printable View
hi experts,
actuly the numbers aligned into right automaticaly, how to change them as text format in flexgrid? and also tell me abt how to use alignment pls.
thanks
Use the ColAlignment property. ColAlignment typically sets the alignment for an individual column. It aligns the data both horizontally and vertically.
Me.MSFlexGrid1.ColAlignment(1) = flexAlignLeftCenter
Me.MSFlexGrid1.ColAlignment(2) = flexAlignRightCenter
Me.MSFlexGrid1.ColAlignment(3) = flexAlignLeftBottom
You can set the exact same alignment for all columns in one call by passing a -1
Me.MSFlexGrid1.ColAlignment(-1) = flexAlignRightTop
thank u very much
and i want to knw how to convert numbers to text format, bcas if i use zero infront of numbers it wont show the zero.
You can only have leading 0's in a String (which includes FlexGrid cells), not in a numeric data type.
If you can't get it working properly, show us your code.
i use cstr to convert, now its working
thanks