I have a table (System.Data.DataTable) and I have a binding manager assosiated with the table.
I have added a delete record button, but I am having problems deleting the "current" record.
Using this code I can delete the first record in the table:
this.myTable.Rows[0].Delete();
I tried using the following code to delete the "current" record:
((System.Data.DataRow) this.myBindingManager.Current).Delete();
but C# doesn't like my cast (
System.InvalidCastException: Specified cast is not valid.)
Any help would be appreciated.
Thanks,
Einar
Semper ubi sub ubi.