I create a function with the aim to show the concatenated string to the DataGrid that I made such:
file1.exe, file2.docx, file3.mp3
how to display that way? I have tried it but messagebox displays an empty string.
This is the code :
public void View()
{
string namaFile = string.Empty;
foreach (DataGridViewRow row in DGVDekripsi.Rows)
{
string NameFile = (string)row.Cells[0].Value;
namaFile += NameFile + ",";
}
MessageBox.Show(namaFile);
}