Register
|
Articles
|
Questions
|
Projects
|
Asp.Net Tips
|
Free Magazines
|
Tutorials
|
Search
|
Write to us
|
Login
Search
Articles
Asp.Net 2.0
AJAX
ADO.Net
C#
Javascript
Books
Asp.Net 2.0
AJAX
ADO.NET
C#
JavaScript
MS SQL Server
SilverLight
VB.NET
XML
Web Service
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
Adding to your Favorites....
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
Everything You Know About CSS Is Wrong! - Free 37 Page Preview!
Programmers Heaven C# School Book - Free 338 Page eBook
Easing the Migration to Microsoft SQL Server 2005
Home
About us
Contact Us
Links
Advertise
Privacy Policy
Copyright ©
2012
. www.AspdotnetCodes.com. All rights reserved.