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

Top 5 Contributors of the Month
david stephan
Gaurav Pal

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Edit and Delete in C#

Posted By: Abhi Kumar     Posted Date: February 09, 2011    Points:2   Category :C#
I am working in C#, I am displaying records in a DataGridview. Now, I need to edit a Record into a new small window upon selection of a record. Edit should be done on Button Click. Deletion can also done in same way (only through coding MS Access/ADO)..

Author: Blessy Baby             
Posted Date: February 09, 2011     Points: 5   


Just add a link in each row and set url and querystring in databond event of the grid view. url means the link of new window.

Blessy Baby
Project Lead
Digitalmesh Softech India (p) Limited
Author: Blessy Baby             
Posted Date: February 11, 2011     Points: 5   


I assume you added a hyperlink conrol for edit and delete.

create data bound event. In this event we will get each using e.dataitem.

then find the hyper link HyperLink hlEdit=e.Row.FindControl(<name of control);
hlEdit.NavigateURL="edit.aspx?id="+<set valus of id from e.Row.Dataitem>

Blessy Baby
Project Lead
Digitalmesh Softech India (p) Limited

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