Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a DataSet and a DataTable in it.

This DataTable uses the fields of 2 table in the database. None of them are primary key.

Now in the windows form, I used a DataGrid and a button.

I used this code to update the DataTable when I press the button:

VIPTableAdapter.Update(myDataSet.VIP)

It shows this error:

'update' is not a member of 'myApplication.myDataSetTableAdapter.VIPTableAdapter'

I cant add update method to the DataTable, why?

Thanks alot.
Posted
Updated 13-Nov-11 23:53pm
v3

1 solution

Does your VIPTableAdapter have a valid UpdateCommand? If not, set it and try.
 
Share this answer
 
Comments
setareh_sky 14-Nov-11 15:14pm    
i cant set it, i dont know why !!!!!!!
Prerak Patel 14-Nov-11 22:43pm    
And with this comment, we are not able to understand what you are doing. Elaborate more - what and how you are doing this?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900