Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,

how to export datagridview data to pipe separated text using c# .net windows application?

I want to export datagridview data to psv format using c# .net windows application.

How it can be possible?

Thanks in Advance.

Ankit Agarwal
Software Engineer
Posted

1 solution

Hi Ankit,

Best possible option will be exporting datatable to txt. please refer the urls below.

DataTable to Pipe Delimited CSV[^]

http://stackoverflow.com/questions/8457197/c-sharp-datagridview-to-text-file[^]

Regards
Sebastian
 
Share this answer
 
Comments
[no name] 31-Aug-13 7:46am    
I am using "DataTable to Pipe Delimited CSV" code when we update this psv file and then import psv file so, It's not updating.

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