I'm getting the error "Could not find installable ISAM" when I try to read csv file using OLEDB connection string.
Please assist
My code is:
if (File .Exists(openFileDialog1 .FileName ))
{
ConnectionString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+openFileDialog1.FileName +";Extended Properties=text;HDR=Yes;FMT=Delimited");
Con = new OleDbConnection(ConnectionString);
string query = "Select * From [Sheet1$]";
Con.Open();
DataAdapter = new OleDbDataAdapter(query, Con);
dt = new DataTable();
DataAdapter.Fill(dt);
dataGridView1.DataSource = dt;
}