Results 1 to 2 of 2

Thread: binding DataGrid to adodc

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Sydney Australia
    Posts
    476

    binding DataGrid to adodc

    Hi team

    I am trying to bing a datagrid to an ADODC with the code below.
    VB Code:
    1. adoStoreCodes.ConnectionString = PU.PradaUtilityDBConnection
    2.     adoStoreCodes.RecordSource = "SELECT BondNo, LocationID FROM LocationsDetail"
    3.     adoStoreCodes.Refresh
    4.     Set dgdStoreCodes.DataSource = adoStoreCodes
    5.     dgdStoreCodes.Rebind
    It works fine in the IDE but won't work on client machine. I get an error "Cannot initialize data bindings"

    Is there something I need to distribute with the app?

    Anny other ideas?

    Thanks FW

  2. #2
    Lively Member bumbala's Avatar
    Join Date
    Sep 2002
    Posts
    111
    You don't need to Rebind. The records should be displayed automatically when you set the DataSource property.

    Also you may try this:

    Code:
    adoStoreCodes.CursorLocation = adUseClient
    However, if the number of records is too large, then you would prefer adUseServer.

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