Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to export single row in new csv file and i want to do this task for all rows in different csv files.
Posted
Comments
Santosh K. Tripathi 10-Mar-15 1:34am    
what you tried?

Have you already had a look at this for example: Writing a DataTable to a CSV file[^]

With a little modification you can make it to export only desired rows from a datatable. Personally I'd make a change and use a DataView instead of a DataTable as a parameter to WriteDataTable. This would make it easy to use a filter.
 
Share this answer
 
I'm new to c# programming, so i cant Undersand the exact logic of code you provided, Can u explore some short code or logic.
 
Share this answer
 
Comments
Deepu S Nair 10-Mar-15 2:34am    
Don't post your comment as solution.Use 'Have a Question or Comment?' link.

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