I am trying to move selected rows from one DGV to another DGV at the click of a button.
I really don’t know where to begin..
I have two seperate DGVs that are bound by a DataSource..
choiceDGV.DataSource = theChoiceList;
universalDGV.DataSource = theUniversalList;
I would like to move any selected items in the choiceDGV to the univeralDGV by a click of a button. I need to make sure the selected rows are removed from the one DGV and added to the 2nd DGV.
Both of the DataGridView‘s have the same amount of columns.
Did you try:
or (edited: DataGridViewRow doesn’t have ItemArray unfortunately):