DataGridView from CSV file BUT WITHOUT OleDb
-
is there any way to import CSV file to datagridview without all the procedure of connectionstrings and querys????? i want only to imports the parameters of the CSV to the table..... 10x... Ido
You can read a CSV into memory as a string array using File.ReadAllLines and use the split method to split on the comma to get your fields.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
-
is there any way to import CSV file to datagridview without all the procedure of connectionstrings and querys????? i want only to imports the parameters of the CSV to the table..... 10x... Ido
I love it when I can do this - CSVtoTable[^]
Never underestimate the power of human stupidity RAH
-
I love it when I can do this - CSVtoTable[^]
Never underestimate the power of human stupidity RAH
-
is there any way to import CSV file to datagridview without all the procedure of connectionstrings and querys????? i want only to imports the parameters of the CSV to the table..... 10x... Ido
Here is a library for you: FileHelpers v2.0 - Delimited (CSV) or Fixed Data Import/Export Framework[^]
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion