thanks man really i appreciate your help ,
actually i've used this code to replace the selected values
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
For Each cell As DataGridViewCell In DataGridView1.SelectedCells
DataGridView1.Rows(cell.RowIndex).Cells(cell.ColumnIndex).Value = TextBox4.Text
Next
MessageBox.Show("Value replaced")
End Sub
the second problem is killing me
actually my project is like this
1- browse for folder and select all the csv files in the folder and sub folders
2- the csv files bathes are listed in the list box
3- selecting the files from listbox and clicking insert the csv file is populated into the datagridview ( so several files are populated into datagridview at once )
4- editing the loaded csv files in the datagridview
5- exporting the datagridview to one csv file
--------------------------------------------- everything is fine with me till here but .......
6- ((( saving the changes to every single csv file in it's own place bye using the file name and bath from the listbox ))) this is my problem now