how to delete multiple file by datagridview in c#
for (int i = 0; i < dgvPurechaseData.Rows.Count-1; i++)
{
string[] picList = new string[] { dgvPurechaseData.Rows[i].Cells[image cell index].Value.ToString() };
foreach (string file in picList)
{
File.Delete(file);
}
}