Results 1 to 2 of 2

Thread: datagrid

  1. #1

    Thread Starter
    Addicted Member smh's Avatar
    Join Date
    Oct 2000
    Location
    South Dakota, USA
    Posts
    249
    I am new with using the datagrid, and would like some instruction on how to use it. I would like to only use code to fill the datagrid. Any good examples out there?

    Thanks,
    smh
    Normal is boring...

    smh

  2. #2
    Hyperactive Member barrk's Avatar
    Join Date
    Sep 2000
    Location
    My own little world
    Posts
    274
    set objconn = createObject("ADODB.Connection")
    objconn.open "driver={sql server};server=SQLSERVER;database=Logging;uid=administrator;Pwd=beer"
    set mycommand = CreateObject("ADODB.Command")
    Set mycommand.ActiveConnection = objconn
    Set myrs = CreateObject("ADODB.Recordset")
    mycommand.commandtext = "Select * from sometable"
    myrs.open mycommand

    set the datagrid.datasource = to myrs



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