|
-
Jun 15th, 2000, 11:12 PM
#1
Thread Starter
New Member
How do you hide a DBGrid column? I tried DBGrid.Column(0).Visible = False but it didn't work, dunno why?
-
Jun 15th, 2000, 11:24 PM
#2
Hyperactive Member
easiest way is ususally to set it's width to 0
-
Jun 15th, 2000, 11:44 PM
#3
Thread Starter
New Member
...
Yes, I tried that, also. No error, it just seemed to ignore it. In Debug mode, everything evaluates as they should, the properties I mean.
-
Jul 6th, 2000, 05:07 AM
#4
New Member
Answer
Bit of an amature at this VB stuff but heres how I hid a column using DBGrid:
Dim Col1, Col2 as Column
Set Col1 = DBGrid1.Columns(0)
Set Col2 = DBGrid1.Columns(1)
Col1.Caption = "Invisible"
Col2.Caption = "Column 2"
Col1.Visible = False
Hope it helps you
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
|