Results 1 to 4 of 4

Thread: linking a database

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 1999
    Location
    Pembroke Dock, Pembrokeshire, Wales
    Posts
    10
    I wasnt to display the contents of a database in a datagrid control. Any ideas?

  2. #2
    Guest

    I need info.....

    What kind of database control are you using??


    -Kayoca Mortation

  3. #3
    Addicted Member
    Join Date
    Feb 1999
    Location
    Belfast
    Posts
    254
    If you are using a MSHFlexgrid then just assign a recordset to the datasource property of the flexgrid and it should populate it without any problem:

    example:
    '
    ' Call stored procedure with customer number from combo box
    '
    Set lrs_history= getCustomerHistory(dComboHistory.BoundText)
    ' Call deUSD.populateGrid(dComboHistory.BoundText)

    Set lrs_history = deUSD.rspopulateGrid
    '
    ' Assign recordset to flexgrid
    '
    Set MSHFlexGrid1.DataSource = lrs_history

  4. #4
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    to make our life easy you can just bound the DBGrid to a Data Control but iff you wish to display a particular data field record, then you may need to use the SELECT statement in the RecordSource property of the Data Control.

    hope this can help

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