Using a DataGridView as a data store is not recommended. This is a control for displaying material.
It’s better to bind it to some storage and do the following:
var table = new HashSet<string>();
table.Add("aa");
table.Add("bb");
table.Add("aa");
dataGridView1.AutoGenerateColumns = true;
dataGridView1.DataSource = table.ToList();
And when a new batch of files appears, add them to the HashSet and simply unbind the Grid.