
StreamWriter sw = new StreamWriter ( Path. Create the CSV file to which grid data will be exported. Private void btnCsv_Click( object sender, EventArgs e)

Please see code that exports the datagridview data to CSV file. Is there a way to update the dataview when the changes are made? is the datatable option the right choice? any help is appreciated. But when I export the file to CSV (excel formated file), the original data from the text file is actually exported with all the fields including the ones I have deleted from the datagridview. When the text file data is populated into the datagridview,i am able to delete unwanted columns. I am working on a datagridview that has its content imported from a comma separated text file.
