|
-
Aug 10th, 2000, 08:26 PM
#1
Thread Starter
Member
Format text
how can i format the text display in the MSHflexgrid?
code:
MSHFlexGrid2.Col = 6
MSHFlexGrid2.Text = Format(MSHFlexGrid2.Text, "dd/mm/yyyy")
I using above code but it only format first row of my table, what should i do?
-
Aug 10th, 2000, 08:28 PM
#2
Monday Morning Lunatic
Try setting the .Row property as well.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 10th, 2000, 08:33 PM
#3
Thread Starter
Member
how to set the row?
I dunno how to set the .row?
because i retrieve the data from database so i will not know how many row there are.
-
Aug 14th, 2000, 11:42 AM
#4
New Member
Re: how to set the row?
just had the same problem,what I found was that I needed to set the row with a loop, e.g.
Dim numrows As Integer
Dim inum As Integer
numrows = Val(MSFlexGrid1.Rows - 1)
For inum = 1 To numrows
MSFlexGrid1.Col = 0
MSFlexGrid1.Row = inum
MSFlexGrid1.Text = FormatNumber(MSFlexGrid1.Text, 3)
Next inum
This gave me 3 decimal places for all the rows in column 0, hope it's okay for you
cheers
Tee Jay
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
|