Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET
I when i run my code it displays a form and a gridview (displaying all the database records) and when i click on edit in my gridview i want all the data gets filled in the form and when i submit that form it gets updated both in the database and gridview.
Posted 16-Dec-12 20:39pm
Edited 16-Dec-12 20:56pm
Vani Kulkarni at 17-Dec-12 1:42am
Have you written an article or asking a question?
Arpit Garg1 at 17-Dec-12 2:02am
please anyone help me out its urgent
Thank you in advance.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
        //find the value control who's value you want
        TextBox tb = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtCityEdit");


on row Updating event u can read the grid view controls, read the control values and bind to where you want, try this.
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

Please follow the link, you will get some hints how to update in gridview

Implementing Cumulative total and Select All functionality with Events in ASP.NET GridView[^]


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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 453
1 Sascha Lefévre 370
2 Abhinav S 170
3 Richard Deeming 160
4 Maciej Los 150
0 Sergey Alexandrovich Kryukov 7,096
1 OriginalGriff 6,395
2 Maciej Los 2,782
3 Abhinav S 2,732
4 Peter Leow 2,694

Advertise | Privacy | Mobile
Web01 | 2.8.150414.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2015
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