goharulislam Posted May 10, 2006 Posted May 10, 2006 Hi Plz help me, I want to know about editing and updating in datagrid. I am using vb.net and dataset in asp.net pages. I think problem is I am using CommandBuilder to update data source directly. take care thanks bye Quote
Puiu Posted May 10, 2006 Posted May 10, 2006 You cannot update multiple tables using a commandbuilder. Your query must not contain a join for the commandbuilder to work! The code is something like this: Dim cb As New SqlCommandBuilder(DataAdapter) DataAdapter.Update(DataSet) dataset.AcceptChanges you must supply a valid dataadapter that fills a dataset using a query that selects data only from one table and it is not using a join to retrieve the data. Maybe you could show us some code and maybe someone will figure out what your problem is Cheers Quote
goharulislam Posted May 11, 2006 Author Posted May 11, 2006 OK Can you please tell me any url which has solution of my problem i.e. edit in data grid. Using dataset because as you are saying that commandbuilder cannot update multiple table at the same time. I am working in VB.NET. Thanks alot for taking so much interest in my problem. Take care Bye Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.