Click here to Skip to main content
12,949,083 members (61,973 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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 19:39pm
Updated 16-Dec-12 19:56pm
v4
Comments
Vani Kulkarni 17-Dec-12 1:42am
   
Have you written an article or asking a question?
Arpit Garg1 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
Top Experts
Last 24hrsThis month
OriginalGriff 5,489
CHill60 3,330
Maciej Los 2,913
Jochen Arndt 1,935
ppolymorphe 1,820


Advertise | Privacy | Mobile
Web02 | 2.8.170524.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2017
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