Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...