Click here to Skip to main content
Rate this: bad
good
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
v4
Comments
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
good
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.
  Permalink  
Rate this: bad
good
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[^]
 
Thanks
  Permalink  

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

  Print Answers RSS
0 Peter Leow 255
1 Mika Wendelius 240
2 Zoltán Zörgő 198
3 CHill60 195
4 TheRealSteveJudge 180
0 Sergey Alexandrovich Kryukov 8,698
1 OriginalGriff 6,591
2 Peter Leow 3,982
3 Zoltán Zörgő 3,634
4 Richard MacCutchan 2,535


Advertise | Privacy | Mobile
Web02 | 2.8.150123.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