I am populating a DataGridView (grid1) either by DataTable or DataSet.
I can remove a set of selected rows then add them to another unbound DataGridView (grid2).
The problem arises when I take a row from grid2 then add it to grid1.
Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.
This occurs because
grid1.DataSource = myDataTable
or
grid1.DataSource = myDataSet
but when I do
grid1.DataSource = Nothing
all the rows from grid1 is removed.
Is there anyway to detach a datagridview from its datasource but keep the rows?