I use DataView Control in ASP.Net. But i can not bind it with my MS Access Database. So please give me a source code to do this.
Data Grid View
Respected Sir,
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ankur GuptaRank #1,017 · 1.9K reputationPosted May 25, 2010, 12:35 AM EDT
Dim conn As New System.Data.OleDb.OleDbConnection
conn = New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; Data Source = C:\GrandviewNHDemo300.mdb ;Persist Security info = False")
conn.Open()
Dim objDataAdapter As New OleDbDataAdapter("Select * from syscod", conn)
Dim ds As New Data.DataSet
objDataAdapter.Fill(ds, "Tabel0")
DataGrid1.DataSource = ds
DataGrid1.DataBind()