Results 1 to 6 of 6

Thread: Datagrid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102

    Datagrid

    How to link a recordset to a data grid?

    I made an sql and want to link it to a datagrid, how to fix it?
    Greetz Matje

  2. #2
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    Use ADO Or dao.

    You've got an sql database???
    If so make a connection etc. then set dbgrids datasource to that connection or control!

    For info about connecting to a db etc. see the db tutorials on this site.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    Yes i have an sql database

    does it has to be something like this?
    Set dg1.DataSource = sql

    when i try this I have object required
    Greetz Matje

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    Now i tried this.

    Set dg1.DataSource = rs

    I got an error that my recordset is not bookmarkable.
    Greetz Matje

  5. #5
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    Nope you'll need to create a connection to the database first!
    Then a recordset pointing to the db's table/recordset!

    Read the tutorials they'll get you moving!

    Basically the best and easiest way is to use the ADO Data control!
    Work with that!
    Found in Project/Components/Microsoft Active Data Object 2.5 blah blah

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    i could do the same thing with a flexgrid
    but there i can't use the record selectors
    Greetz Matje

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