3
I tried all this already and nothing has worked. Everyone is deleting the lines and column. What I need is to clear 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
What is the Type of the object that was in Datasource ?
– Tony
Bindingsource, a table.
– Fabrício Mendes
With Datasource, a component, this is the case, it is preferable to use code that is much more practical. A Tip!
– Maria