|
-
Sep 13th, 2009, 10:02 PM
#1
[RESOLVED] MSFlexgrid format as text
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
-
Sep 14th, 2009, 12:31 AM
#2
Re: MSFlexgrid format as text
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
-
Sep 14th, 2009, 12:59 AM
#3
Re: MSFlexgrid format as text
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.
-
Sep 14th, 2009, 06:10 AM
#4
Re: MSFlexgrid format as text
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.
-
Sep 14th, 2009, 09:33 PM
#5
Re: MSFlexgrid format as text
i use cstr to convert, now its working
thanks
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
|
Click Here to Expand Forum to Full Width
|