Results 1 to 7 of 7

Thread: Help with datagrid and query

  1. #1
    Join Date
    Jan 2005
    Posts
    498
    Country
    Jamaica

    Default Help with datagrid and query

    I have a data projct doing and have a couple queries, I simply need to know how i get the datagrid to show the results from my query can someone tell me how i do that.

    I looked over my post noticed i had flexgrid, please people i need help with this i just need to know how to populate my datagrid with the results from my sql select query

    please and thank you
    Last edited by Notorios; March 22, 2005 at 12:57 PM.
    Notorios
    That Which Is Not Defined Is Infinitely Great
    Google The Search Engine Of The Gods

  2. #2
    Join Date
    Jan 2005
    Posts
    498
    Country
    Jamaica

    Default Re: Help with flexgrid

    No one at all can help me with this, im dying here and really need some help, very important
    Notorios
    That Which Is Not Defined Is Infinitely Great
    Google The Search Engine Of The Gods

  3. #3
    Join Date
    Aug 2002
    Posts
    6,127
    Country
    Jamaica

    Default Re: Help with flexgrid

    What connector are you using to connect to your data, DataEnvironment? If so, make sure the DE has a command set up for the SQL query. Then click the datagrid to bring up it's properties. Double-click DATASOURCE to set the source as your DE, then select from the list in DATAMEMBER to choose the appropriate command (query) to display in the grid.
    .
    SHANTI II - Ubuntu 13.04 64bit Desktop
    HP Pav G60-236US 3GB RAM Laptop, Ubuntu 13.04 64bit and Win7 Home

    "So Daddy, how come you telling me stealing not right when YOU copying DVDs? How come? How Come?"


    Changes to posting in Classifieds

  4. #4
    Join Date
    Nov 2004
    Posts
    41

    Default Re: Help with datagrid and query

    he's right.... do as stated above

  5. #5
    Join Date
    Mar 2004
    Posts
    232

    Default Re: Help with datagrid and query

    //Declare recordset to hold Query result
    Dim myrec as new ADODB.RECORDSET
    //Declare an SQL connection

    Dim Mycon as new ADODB.connection
    Dim constr as String
    constr="Provider=Microsoft.Jet.OLEDB.4.0; " & _
    "Data Source=C:madhead.mdb""

    mycon.connectionstring=constr

    myrec.open "select * from customers",mycon,1,2

    Lets say your data grid name dglist.
    dglist.datasource=myrec

    And the dtagrid will show the query result

  6. #6
    Join Date
    Aug 2002
    Posts
    6,127
    Country
    Jamaica

    Default Re: Help with datagrid and query

    I believe he got through. We spent about half an hour on MSN trying to figure out why the DE command would not populate. His query involved using a parameter. A day later, he told me he got through.
    .
    SHANTI II - Ubuntu 13.04 64bit Desktop
    HP Pav G60-236US 3GB RAM Laptop, Ubuntu 13.04 64bit and Win7 Home

    "So Daddy, how come you telling me stealing not right when YOU copying DVDs? How come? How Come?"


    Changes to posting in Classifieds

  7. #7
    Join Date
    Jan 2005
    Posts
    498
    Country
    Jamaica

    Default Re: Help with datagrid and query

    thanx to all you peeps who tried to help me, i got through like ramesh said, bless
    Notorios
    That Which Is Not Defined Is Infinitely Great
    Google The Search Engine Of The Gods

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •