AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 Update in Gridview
Posted by bravo906 on  12/28/2009 5:49:14 PM Category: Asp.Net 2.0
Add to my favorites
Email to friend
i'm lookin' to update the row in gridview.The issue is that when i write this code i.e convert.toint32(gridview1.datakeys[e.rowindex].values[0].tostring()); it ends up in argumentoutofrange exception.The gridview format is somethin' like this

serial_no product_id
1 100 edit
2 200 edit

The unique key value is assumed to be serial_no.

Please suggest.

Thanx in advance

Post Your Reply Post New Question

 Viewer's Reply
Set the DataKeyNames for the GridView Control
Answered By Moderator1 on 12/29/2009 12:11:02 AM
Hi,

Set the DataKeyNames value in the GridView control as serial_no.
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
FierceDeveloper
Introduction to Web Applications Development
Oracle Magazine