Here is the sample code to extract data from DataGridView to CSV file.
1. make a simple VB project.
2. add a DataGridView control and a Command button to the Form.
3. write this code to Extract button event click :
4. write some data to the DataGridView, here is the sample:
5. Here is the output CSV file :
[Continue reading...]
1. make a simple VB project.
2. add a DataGridView control and a Command button to the Form.
5. Here is the output CSV file :