Results 1 to 2 of 2

Thread: DBGrid

  1. #1

    Thread Starter
    New Member
    Join Date
    May 1999
    Location
    Toronto,Ontario,Canada
    Posts
    14

    Post

    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?

    ------------------



    ------------------

  2. #2
    Member
    Join Date
    Jul 1999
    Posts
    33

    Post

    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
  •  



Click Here to Expand Forum to Full Width