Results 1 to 10 of 10

Thread: Data control & DataGrid ocx problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458
    Hi,
    I’m using a VB6 Pro SP4 (the latest). Here’s the problem:
    1. I add Data control and DataGrid control (MSDATGRD.OCX) to the form
    2. I connect Data control to Biblio.MDB and set RecordSource to one of the tables (Authors)
    3. When I try to set DataSource of DataGrid I get the following error

    Error Message:
    No compatible data source was found for this control. Please add an OLEDB data source such as Data Enviroment or Microsoft ADO Data Control to the form or project.

    I also get this message:

    Error Message:
    Can't bind this control to Data1. Select a different data source (eq - ADODC1, or DataEnviroment1...)

    I would really appreciate your help for I need to use data control & bound it to data grid ocx.

    Thanks.
    Thanks

    Tomexx.

  2. #2
    Guest
    Hi, the error message only means that the Data control u r using is not compatible to Data Grid. It is like this, when Microsoft introduced ADOs they have provided new controls also like this Data Grid and all. So, even ADODC is a new control i.e., data control provided by ms for use with ADOs. SO, go ahead and use ADODC instead and you wouldnt find much difference and infact feel much more interested in using it. To use Data Grid use ADODC. (Microsoft's New Data Control for ADOs). Hope this helps u.

    All the best...vijay

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458
    Thanks, but how am I gonna get a new Data control, since it's an intristic control? Or should I get an updated DataGrid control?
    Thanks
    Thanks

    Tomexx.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458
    Anyone?
    Thanks

    Tomexx.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458
    Any other thoughts?
    Thanks

    Tomexx.

  6. #6
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    go to Project|Components and add Microsoft ADO Control 6.0, connect that to your database then your grid to that
    VB6.0 SP4
    Windows 2000
    I'm thinking of a number between

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458
    Ok, so there's no way for me to use the intristic Data control then? Am I going to have to use an external OCX (MS ADO control) for all my data manipulation instead?
    Thanks

    Tomexx.

  8. #8
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    if your dead set on using that data control then use a different grid, i don't necissarily consider the ADO an external control just because it doesn't show up in the toolbar by default
    VB6.0 SP4
    Windows 2000
    I'm thinking of a number between

  9. #9
    Guest
    the 'intristic' control is the DAO data control, you
    can use this one with the older version of the databound
    grid.

    if you want to use the newer grids (OLEDB = ADO) you
    have to use the ADO data control (ADODC).

    good luck

    Sascha

  10. #10
    New Member
    Join Date
    Oct 2000
    Location
    hyderabad, India
    Posts
    4

    Smile

    hi
    if u want to use datagrid you have to use adodc
    suppose if you want to use datacontrol only then you go with dbgrid control i.e. microsoft databoundgrid control foun in components
    set dbgrid property to datasource=data1
    and after that goto the form select the dbgrid and rightclick the mouse and select retrieve fields it will gives u total fields then run the form

    ok bye
    harish

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