TimRegester
Technical User
I have written a Winforms app in C# on Visual Studio Express 2005 with a SQL Server 2005 database behind. If I can prove it works I will get VS 2005/8 Pro plus MSDN and lots of other useful dev apps.
Most of the application deals with XML and I have dealt with that ok. But the base of the record comes from a SQL Server DB.
Using .Net 2.O and ADO.NET I need to insert a row at the end of a table on a form with no datagrid, a binding source, dataset and table adaptor. I cannot for the life of me find a working method to do it.
I have used (where bs is binding source) bs.addnew() to create a blank record and this can then be completed and bs.endedit() but cannot find the method to write the row back to the table. I tried bs.insert and although I can get the row position ok cannot find the definition of the "object value" required in the syntax. Everything i try gives a run time exception of "Cannot insert external objects to this list"
So 1) What is this object and what value should it be?
or 2) Suggestions for an up to date book as reference.
or 3)A tutorial for this scenario not using a datagrid.
or 4) a link to sample code.
Most of the application deals with XML and I have dealt with that ok. But the base of the record comes from a SQL Server DB.
Using .Net 2.O and ADO.NET I need to insert a row at the end of a table on a form with no datagrid, a binding source, dataset and table adaptor. I cannot for the life of me find a working method to do it.
I have used (where bs is binding source) bs.addnew() to create a blank record and this can then be completed and bs.endedit() but cannot find the method to write the row back to the table. I tried bs.insert and although I can get the row position ok cannot find the definition of the "object value" required in the syntax. Everything i try gives a run time exception of "Cannot insert external objects to this list"
So 1) What is this object and what value should it be?
or 2) Suggestions for an up to date book as reference.
or 3)A tutorial for this scenario not using a datagrid.
or 4) a link to sample code.