Click here to Skip to main content
12,395,378 members (62,571 online)
Rate this:
Please Sign up or sign in to vote.
See more: SQL-server-2005 C# ASP.NET , +
hello friends i m having gridview items are name,firstname,lastname

by using datatable i showed the details in gridview.

i used name item template as linkbutton

when i click any name in gridview... the row details will shown in textboxes... by that i want to update edit and delete the record.without using default edit,update and delete event in gridview give me some solution please
Posted 18-May-11 1:36am
Updated 18-May-11 3:22am
rahulrcn 18-May-11 8:03am
not clear
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Take a look at this-[How to get the Values of Selected Row from a Gridview in TextBox using ASP.NET][^] article which will guide you how to do it with snaps as well as code.
Try it!
beginner in 18-May-11 8:24am
in that tutorial we can select using default select button. i want to get data when i click any data in gridview
Mollly Qi 14-Nov-12 21:34pm
the link is broken, I can't see anything!
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

get the gridview selected index and using that index display textboxes like


and then inserting,updating and deleting are very easy part.
Member 10056579 9-Jun-13 9:02am
after selected row in textbox how to update from button control ????

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 19 May 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100