INSERT INTO statement contains the following unknown field name: 'F2'. Make sure you have typed the name correctly, and try the operation again. using c#.net oledb
i need to insert record in excel using oldeb.i got above error
i have one gridview . i need to insert gridview column to excle column. and gridview rows are insert in to excel .
i got an above error . i use asp.net with c#. i need to use oledb object . export gridview to excel

Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted Apr 26, 2016, 12:57 AM EDT
I suggest you an alternate approach.
Where get the data from grid and bind to the DataTable /DataSet
alice yangRank #2,329 · 607 reputationPosted Apr 26, 2016, 1:51 AM EDT
kumar yoga156 reputationPosted Apr 26, 2016, 1:59 AM EDT
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 4, 2016, 2:00 AM EDT
Hi Kumar, you can accept my answer, if that was useful.