|
-
Oct 11th, 2005, 08:17 PM
#1
Thread Starter
New Member
removing/hiding columns in msflexgrid
Hi to everyone.
I want to know how to remove/hide columns in msflexgrid. I'm going to do this for printing the control but not all the columns are included. Can someone help me with this? Thank you in advance.
-
Oct 11th, 2005, 10:52 PM
#2
Junior Member
Re: removing/hiding columns in msflexgrid
Have you try this ? this "hide" the columns but still there (just not visible)
Flex1.ColWidth(3) = 0
3 is the Number of the Column
-
Oct 13th, 2005, 07:37 PM
#3
Thread Starter
New Member
Re: removing/hiding columns in msflexgrid
No, I haven't. Thank you for this.
-
Oct 14th, 2005, 12:32 AM
#4
Re: removing/hiding columns in msflexgrid
The FlexGrid does not have an internal method to delete a column but its easy to do using this simple procedure.
VB Code:
Public Sub DeleteColumn(FlexGrid As MSFlexGrid, ByVal Column As Long)
With FlexGrid
'move the column to delete to the end
.ColPosition(Column) = .Cols - 1
.Cols = .Cols - 1 'change the number of columns
End With
End Sub
-
Oct 14th, 2005, 07:37 PM
#5
Thread Starter
New Member
Re: removing/hiding columns in msflexgrid
brucevde,
Thank you for your help. I'm now ok with this. :-)
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
|