📅  最后修改于: 2022-03-11 14:48:45.989000             🧑  作者: Mango
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);
}
}