📜  c#代码示例中如何通过datagridview删除多个文件

📅  最后修改于: 2022-03-11 14:48:45.989000             🧑  作者: Mango

代码示例1
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);
                    }
                }