![]() I don't understand where's the error.Answer1: OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT * FROM " Path.GetFileName(FileName), conn) This is my code: string FileName = conn = new OleDbConnection("Provider=.4.0 Data Source = " Path.GetDirectoryName(FileName) " Extended Properties = \"Text HDR=YES FMT=Delimited\"") I tried to set a datatable but it's not working. I read this file with block note and I see that each value is divided by " " csv file and I'd like to read it into a datagridview (each value into an each column).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |