Results 1 to 2 of 2

Thread: dbgrid ?

  1. #1

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Question

    Hi

    How I put dbgrid in my form ?

    VB6

  2. #2
    Hyperactive Member
    Join Date
    Nov 2000
    Location
    Mexico City
    Posts
    306
    The component is:
    Microsoft data bound grid control.

    You have to link it with a data control.

    Data setting:
    Data1.DatabaseName = App.Path & "\file.mdb"
    Check the connect property for the correct database type.

    Data1.RecordSource = your query or table
    Data1.Refresh

    To link with a dbgrid,
    dbgrid1.datasource=data1

    I hope this will help you
    If things were easy, users might be programmers.

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