Wrox Programmer Forums
|
Visual Web Developer 2005 Discuss creating ASP.NET 2.0 sites with Microsoft's Visual Web Developer 2005. If your question is more specific to a piece of code than the Visual tool, see the ASP.NEt 2.0 forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2005 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 August 21st, 2006, 07:33 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default DetailsView

Hi everyone,
i've just descovered the detailsview control today, but although i'm sure it could help me with my work i can't understand how it works, so can anybody help me with how can i edit/update rows in DetailsView.
thank you

__________________
Nothing is impossible. The impossible only takes longer. \"Digital Fortress, Dan Brown\"
 
Old September 15th, 2006, 06:57 AM
Authorized User
 
Join Date: Sep 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

HI Zags,
When making the data source for the details view, click on the advanced button when typing the query and make sure you check the option to Generate insert, Update and Delete Statement and also check use Optimistic Concurrency.

Now when you get back to your details view, you will get the small > arrow on the top right of the control, click that, its the quick menu. You can configure you data source there, then you can also click on the options of Enable Paging, Insert, Editing, Deleting etc.

For adding a data source, you got to have an SQL or any supported database first. A query or the entire rows from the table. You should add an SQLDataSource from the same place where you got the Detailsview control.

Vincent Thomas
Bangalore





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdownlists in DetailsView irelandk BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 February 20th, 2007 10:13 AM
DetailsView Issue. midway11 ASP.NET 1.x and 2.0 Application Design 5 December 4th, 2006 11:51 AM
DetailsView faithfulman ASP.NET 2.0 Basics 1 September 22nd, 2006 11:16 PM
detailsview pau5160 ASP.NET 2.0 Basics 0 August 21st, 2006 10:47 PM
dropdownlist value into detailsview: how? hertendreef ASP.NET 2.0 Professional 0 June 26th, 2006 01:54 AM





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