.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson
Eminent IT

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

update grid view's row

Posted By: kokulakrishnan     Posted Date: January 13, 2011    Points:2   Category :ASP.Net
hi all, all columns in my table are having duplicates.no primary keys.i can display grid view by giving slection parameter.but when i select a perticular row ro update, i couldn't.so anyone can explain how to update grid view's selected row.

Author: Manas Patnaik             
Posted Date: January 14, 2011     Points: 5   

As of i know without primary key it is not possible to do insert operation to Dataset and Grid View.
Why not you create a temporary primary key attached to the Datasource (Some how Tricky).

Manas Patnaik
Author: Shweta             
Posted Date: January 17, 2011     Points: 5   

in the gridview u can take the template field.inside the template field u can take two image buttons for edit and update each.
and then in the command events of those buttons u can write the code for editing the row and then updating the row.

Shweta Agashe
.Net Developer,Global Infobase Solutions.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend