I've found questions similar on SO already, all over the net actually. Though I haven't found a working answer yet.
So I'm working in a windows form application using Visual studio 2008. Language is C#
I have a DataGridView that is not bound to a DataSource.
so:
MyDataGridView.DataSource = null;
wont work...
I've also tried
MyDataGridView.Rows.Clear();
But this removes all my custom made rows.
So I'm now looking for a way to just empty the contents of all cells (not including header cells). So it shouldn't affect anything else but the contents of the cells itself.