Results 1 to 2 of 2

Thread: DataAdapter

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Posts
    3

    DataAdapter

    Hiiii

    PLZ i want all code to create sqldataadapter Programmatically
    with its sqlconnection,sqlcommand(text command) and dataset
    and bind it with datagrid i need all above to be at web form


    Thx

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    39
    Hope I didnt forget anything. =)

    Code:
    Dim cn As New SQLConnection("connectionstrin")
    Dim da As New SQLDataAdapter("Selectcommand", cn)
    Dim ds As New Dataset
    
    da.Fill(ds)
    
    DataGrid1.DataSource = ds
    DataGrid1.DataMember = "Table name"
    /Nisse

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