Dim MyConnection As OleDb.OleDbConnection,DA As OleDb.OleDbDataAdapter MyConnection = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Me.TextBox1.Text & ";Extended Properties='Excel 8.0;HDR=Yes;IMEX=1'") DA = New System.Data.OleDb.OleDbDataAdapter("select * from [Detail$]", MyConnection) DA.TableMappings.Add("Table", "Tbl1") DtSet = New System.Data.DataSet DA.Fill(DtSet) Me.DataGridView1.DataSource = DtSet.Tables(0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)