-
help me in datagrid
I using adodb to connect to access database. Then I want to display the data inside database to datagrid by using coding. Is this possible? How the way?
I post the code. This code was similar with vb6.
Dim db As New ADODB.Connection()
Dim rs As ADODB.Recordset
db.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source= _ c:\attendence.mdb")
rs = db.Execute("Select * From logtime")
txttime.Text = rs.Fields("Time").Value
txtdate.Text = rs.Fields("Date").Value
-
Do you have to use adodb?
Because the best tip is to use ADO.NET instead if your populating a datagrid.