Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 22nd, 2005, 05:46 AM
Authorized User
Join Date: Nov 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in updating in dataset

hi please help me for
i have created a win form with just one textbox and a button.
i had used the sqldataadaptor for binding the data with textbox with the following code
On form Load event:

textBox1.DataBindings.Add("Text",dataSet11,"one.na me");
Where : "one:table name" and "name:field name"("sno" is pk in table)

it display the data correctly but when i want to update the value using following code it won't update it
On button click event:


now if i take datagrid in the above system it updates the database

Is there any difference in setDataBinding of dataGrid or dataBinding of controls?
please help me with proper code
thanks 'advance'

Old June 28th, 2005, 05:26 AM
Friend of Wrox
Join Date: Sep 2004
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts

Have u defined Insert or Update command for sqlDataAdapter1

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Database from Dataset hexOffender VB Databases Basics 0 October 30th, 2006 12:40 PM
updating a dataset hexOffender VB.NET 2002/2003 Basics 1 September 28th, 2006 05:13 PM
Updating Datagrid From Dataset Issue hannahforinton C# 2 May 30th, 2006 12:19 PM
Updating Database w/Dataset -Failure KennethMungwira ADO.NET 5 April 24th, 2006 04:54 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.