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 April 16th, 2009, 06:05 PM
Registered User
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Update a dataview

Hello everyone,

I have made a form based on the defaultview of a dataset. All the controls are binded to that default view The reason for doing this was that I needed to navigate through the records, and I needed an easy way to filter for search purposes. Works perfectly.

The next step is, when I make changes in the fields of the form, that the underlying datasource is updated. But now I found out that you can only use the dataset itself in the update method of the data adapter. But the changes are in de default view (I guess) and not in de dataset. So now I must find a way to bring these modifications from the view to the dataset. How do I do that? Or is there another way?
 
Old April 20th, 2009, 01:19 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 227
Thanks: 1
Thanked 7 Times in 7 Posts
Default

Helen:
More information is needed. For example, what is meant by default view....GridView, DetailsView, or FormView? The GridView, for example alllows editing by using the Boundfield and Datafield Controls to name a few. What datasource did you use? Are you using ASP.NET 2.0?
__________________
Disclaimer: The above comments are solely the opinion of one person and not to be construed as a directive or an incentive to commit fraudulent acts.





Similar Threads
Thread Thread Starter Forum Replies Last Post
about how to use dataview to search, thanks! raybristol ASP.NET 1.0 and 1.1 Basics 5 April 25th, 2008 06:02 AM
dataview Yasho VB.NET 2002/2003 Basics 1 May 28th, 2007 03:40 AM
Ordering a dataview Louisa VB.NET 2002/2003 Basics 1 November 11th, 2004 10:04 AM
making changes to dataview bluelaser VS.NET 2002/2003 0 September 20th, 2004 10:15 PM
DataView vivi C# 4 November 10th, 2003 01:15 AM





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