|
-
Aug 8th, 1999, 08:04 PM
#1
Thread Starter
New Member
I have two questons regarding with DBGrid and was wondering if anyone can help. I was able to populate a DBGrid with a recordset from an Access table. My questions are
1. Is there a way to hide certain columns in
in the DBGrid once a recordset is
exported into it?
2. How do you allow users to make changes to
the recordset directly on the DBGrid??
If anyone knows the answers to these two questions I would greatly appreciate it if someone answer my questions.
p.s. please include some sample code?
------------------
------------------
-
Aug 8th, 1999, 09:14 PM
#2
Member
To hide a column on a grid, just set the .Visible property for that column to false. The way to do this is to say something like:
DBGrid1.Columns(0).Visible = False
The number in the parentheses after columns tells the grid which column you want to set a property for. Remember, column 0 is the first column, column 1 is the second, etc.
HTH
Jonathan
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
|