Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 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 Professional 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 February 23rd, 2007, 02:16 PM
Posts: n/a
Default GridView Delete Command

Hi, I am trying to delete a row from a gridview. The question I have is how to extract the data from the gridrow to use in my delete statement. If I use
 "Dim Revision_number As String = CurrRow.Cells(2).Text"
I get the value '&nbsp' returned to my data element.
If I use "Dim Revision_number As String = CurrRow.Cells(2).ToString", I get "System.Web.UI.WebControls.GridViewRowCollecti on" returned to my data element. Both return an error message that the data value is too large.
As a test, I copied working code from my update subscript into my delete subscript and copied the update statement in the SQLdatasource to the delete statement in the same SQLdatasource. Same code but doesn't work for the delete option.
Can someone explain what the difference is? I do have reference materials and will gladly look up any topics suggested. I use Professional ASP.NET 2.0 extensively but didn't find it there.

Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView Delete Event fires twice Scott663 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 May 11th, 2007 05:36 AM
GridView Delete DARSIN ASP.NET 2.0 Basics 2 March 20th, 2007 06:53 AM
Delete Confirmation From within a Gridview rit01 ASP.NET 2.0 Professional 5 March 8th, 2007 06:47 PM
delete using checkboxes in gridview aspvbnet ASP.NET 2.0 Basics 1 November 22nd, 2006 08:28 PM
Insert, update, delete in gridview-!!! URGENT !!! dagad ASP.NET 2.0 Basics 0 September 27th, 2006 06:24 AM

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