Questo topic e' stato chiuso dal moderatore.
06/08/09 17:18
Che Guevara
Dim RS As New adodb.Recordset Dim Tabella As New DataTable Dim converter As New System.Data.OleDb.OleDbDataAdapter Dim connStr As String = "Driver={SQL Server};Server=****************;Database=***************;" Dim Conn As New ADODB.Connection Conn.Open(connStr) RS.Open("select * from ********", Conn) RS.MoveFirst() 'Tabella. converter.Fill(Tabella, RS) Conn.Close() DGV.DataSource = Tabella End Sub
errore riportato: Per ottenere nuovi handle di riga è innanzitutto necessario rilasciare quelli in uso.
alla riga: converter.Fill(Tabella, RS)
DGV = dataGridView
La mia necessità è quella di riempire un datatable con un recordset di ADO...
dove è che sbaglio? posso farlo in un modo più semplice e veloce?
Grazie a tutti...
Grazie mille a tutti...
aaa