Click here to Skip to main content
15,888,237 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
please i need a help,
i am so happy, that i a member of this web. It is verry important.
i have a problem:
how to read several CSV's data from local drive and write them in a dataViewGrid.
after that with a button click event, all this data in SQL server in certain data table.

Please anser me quikly.
Thanks 1000x
Posted
Comments
ZurdoDev 12-Nov-15 13:01pm    
Where are you stuck?
Ehsan Sajjad 12-Nov-15 13:03pm    
your question is too broad, please show what you tried and be specific
assoukihicham 13-Nov-15 2:49am    
Hello or Assalam aleikum Mr. Sajjad,

thanks for your answer. my goal, i wand:
1. First: the user have via visual C# Form the choice of certain csv file on the local computer.

2. Second: DataGridView display (shows) the csv file. as table

3. an The End: via SQL command this Table to import to the SQL Database (Customers).
Remark: The CSV file have a different number of row and column. i want to make it dynamic, and not static.

Thank you for your efforts
Assalam aleikum
Hicham

Assalam aleikum
assoukihicham 13-Nov-15 2:53am    
Hello,
the choice of certain CSV data can be happend with the Element openFileDialoge Function.
thanks
Ehsan Sajjad 13-Nov-15 4:12am    
Have a look at CSVHelper google it

1 solution

Start by looking at some of the available CSV readers.
This one is pretty good: A Fast CSV Reader[^]
When you gave the data read, the rest should be pretty easy.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900