Pouzivam VB.NET Dim DBConnection As New OleDb.OleDbConnection Dim DataAdapter As OleDb.OleDbDataAdapter Dim DataSet As New DataSet Dim QueryString As String DBConnection.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0; Data Source = " & strConnection DBConnection.Open() QueryString = "SELECT bla bla bla :o)" DataAdapter = New OleDb.OleDbDataAdapter(QueryString, DBConnection) DataAdapter.Fill(DataSet, "Pieces") DBConnection.Close() 'dgdPieces_NOK je DataGrid dgdPieces_NOK.DataSource = DataSet.Tables("Pieces")
|