Results 1 to 11 of 11

Thread: databasegrid

  1. #1

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

    databasegrid

    Hello folks

    Where can I find a database Grid?

    Which reference or component do i have to include?
    Greetz Matje

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    In PROJECT/COMPONENTS;

    Microsoft DataGrid Control 6.0 (MSDATGRD.OCX)
    Microsoft FlexGrid Control 6.0 (MSFLXGRD.OCX)

    Or don't use the (rubbish) Microsoft grids and get TrueDBGrid from www.componentone.com
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    is there no place where i can find grids for free?
    Greetz Matje

  4. #4
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Well the datagrid and flexgrid shipped with VB are free, but as they say 'you get what you pay for'. Yes, they'll probably do what you want to start off with, but when you get into more complicated programs you'll soon find out how rubbish they are. You can go to www.componentsource.com and search for grid controls there - some may be cheaper than the *FANTASTIC* TrueDBGrid, but you'll be hard pressed to find one with more features than it.
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    but i don't want a datagrid
    is there nothing like a databasegrid
    Greetz Matje

  6. #6
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    What are you trying to do???

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    I'm trying to put an sql into a grid
    but the sql is a combination of 2 tables....

    And there must be a method in the grid to update, delete and modify records
    Greetz Matje

  8. #8
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    What do you mean an sql??

    Do you mean:
    1) Display the data in a grid from a sql database. Add and make changes etc.
    Or
    2) Display the sql database! SHowing the 2 tables and there structure!

    If it's number 1 i have told you what you need to do and dbgrid is perfect for this!
    It can update, delete and modify records!

  9. #9
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    I'm going now. PM me if you need more advice/help!

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Location
    Brugge
    Posts
    102
    displaying data form 2 tables in a grid
    Greetz Matje

  11. #11
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    Do you know how to connect to the db in visual basic?

    I.e dao and ado?

    If not you'll need to read the tutorials to get a grip of it!

    DBgrid or flexigrid will do you fine!

    You have to connect visual basic project to the db. You cant just set the datasource of the grid to the sql database.
    To do this you use ado or dao or the data controls!

    Then you'll need to set up some recordsets and use SQL statements to get the data you want!

    Set the datasource of the grid to your datacontrol or connection string.

    good luck

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