Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 October 3rd, 2007, 05:29 AM
Authorized User
 
Join Date: Aug 2007
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default Enable Editing on Gridview - RESOLVED

Hi,

I have a gridview displaying 3 fields of my table(Quantity, PrintPrice, NoPrintPrice).

I want the update command to only allow these fields to be edited, and the others to remain the same.

My update command is this:

UpdateCommand="UPDATE [HIPPricing] SET [Quantity] = @Quantity, [Price] = @Price, [NoPrintPrice] = @NoPrintPrice WHERE [ID] = @original_ID AND [ProductCode] = @original_ProductCode AND [CustomerCode] = @original_CustomerCode AND [CoverType] = @original_CoverType AND [Pages] = @original_Pages"

I thought this would do it, but my edit just doesn't do anything.

Any thoughts?

EDIT: I've decided to use a details view, as I have managed to get that working





Similar Threads
Thread Thread Starter Forum Replies Last Post
[Resolved] GridView - manually set SortExpression snufse ASP.NET 2.0 Basics 1 November 3rd, 2008 10:00 AM
[Resolved] GridView to Excel snufse ASP.NET 2.0 Basics 2 October 28th, 2008 02:37 PM
[Resolved] GridView Sorting and Paging snufse ASP.NET 2.0 Basics 1 October 9th, 2008 07:45 AM
[Resolved] GridView TemplateField - get value snufse ASP.NET 2.0 Basics 25 July 29th, 2008 07:25 AM
[Resolved] IListSource problem in GridView snufse ASP.NET 2.0 Basics 5 February 12th, 2008 01:42 PM





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