Hi
Please help me for solve the problem I need to Export all my Datagrid Data into CSV file
Thank You
Sourabh
Hi
Please help me for solve the problem I need to Export all my Datagrid Data into CSV file
Thank You
Sourabh
Hi
I'm not going to tell you Exactly how to do it (you can research it,) but I'll give you a rough outline:
1. Open/ create a csv file
2. Loop through each row in the datagrid
3. for each cell in each row, add it's value to a comma delimnited string
4. Write this string out as a line of text in your csv file
5. Wipe the string for the next loop
6. Save the Csv file
7. Close the file.
You may want to google/look up the following:
- The Datagrid class,
- The System.IO class
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.