Answers for "how to delete multiple file by datagridview in c#"

C#
1

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);
                    }
                }
Posted by: Guest on January-05-2021

Code answers related to "how to delete multiple file by datagridview in c#"

C# Answers by Framework

Browse Popular Code Answers by Language