I am adding a new row to a BindingSource bound to a DataGridView
source.AddNew();
After that, use BindingSource to get the added row, returning the next row to the DataGridView when sorting it.
ROW "A" ROW "B" <- myBindingSource.AddNew(); ROW "C"
myBindingSource.Current gives a ROW of "C". (it became the selected row in the DataGridView)
I need this because I want to update only the added row
DataRowView drv = (DataRowView)myBindingSource.Current; myTableAdapter.Update(drv.Row);
not the whole table.
myTableAdapter.Update(myDataSet.myTable);
and also, I would like this new added row to be selected in the DataGridView after insertion.
Is this possible somehow?
source share