|
-
Jan 10th, 2003, 03:39 AM
#4
Thread Starter
Junior Member
Here is my binding code
Dim da as New SqlDataAdapter("SELECT * FROM Customers", cnConnection)
Dim CMB as New SqlCommandBuilder(da)
Dim ds as New DataSet
da.Fill(ds)
chkApproved.Databindings.Add("Checked", ds.Tables( 0), "Approved")
........
On btnAddNewClick
me.bindingcontext(ds.tables(0)).Addnew
'Immediately, I get an error
I've just tried setting a default value but i still get the same error message, unless I've put the statement at the wrong place (just before the bind statement)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|