I've been trting to clear datagridview rows so it can be populated again. Sounds simple, but most of the common solutions dont work.

DatagridView1.Rows.Clear(), setting rowcount=0, setting datasource=null wont work. They give errors clearly.

Using a foreach and clearing the rows using Remove() seems to be work somewhat - I believe its not clearing the display though.