why not just remove it using a binding source for example
bs.RemoveAt(0)
Regarding test.Tables[0].Rows.InsertAt(newRow, 0);
BindingSource.Insert(int, object) or BindingSource.List.Insert(int, object) looks good, but is not supported when the source is a DataSet.
This is because BindingSource.Insert simply calls System.Collections.IList.Insert() on the base list. The main list is a DataView. Insert on Dataview implementation -
private void System.Collections.IList.Insert(int index, object value) { throw ExceptionBuilder.InsertExternalObject(); }
You can show it with
System.Data.DataView dv = bs.List as DataView; System.Collections.IList list = dv; list.Insert(0,newRow);
source share