Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 07:32 PM.

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