I have tried all this already and nothing has served. All are excluding rows and columns. What I need is to clean up the content written on them.
datagridview.datasource=null;
datagridview.resetbindings();
datagridview.Rows.Clear()
DataGridView1.DataSource=null; //Remover a datasource
DataGridView1.Columns.Clear(); //Remover as colunas
DataGridView1.Rows.Clear(); //Remover as linhas
DataGridView1.Refresh(); //Para a grid se actualizar