here\'s the deal I got a datagridviewer which is called gridview1 and a fileupload1 when i upload a file it updates the gridview1 and table in database with the file name and pa
Check the GridView1.SelectedRow is not null:
if (GridView1.SelectedRow == null) return; string DeleteThis = GridView1.SelectedRow.Cells[0].Text;