Friday 3 January 2014

Update data from the grid view

In This I will Tell you how to update data from the grid view.....
   Steps:

1.So Firstly take Gridview control from the data control
2.After that go to Edit Column(Click On it)
3.Window is open(Select Template from it and Add It(Acc to your column required means to say number of  column you want to add in grid view Add that no of template field))
4.
5.Now click on edit template field
 6.Write coding in the source page
7.Add the edit button go to the proprties of gridview...there is Autogenrate edit proprty ... True it
8.Now add the events of edit,update,cancel......go to the events of gridview
9.Do code on these events

So Now Your Data is updated......one thing that should kept in your mind..in web config file your connection should be make.....if you want to check how to make connection in web.config file check this link
http://checkdotnetsolution.blogspot.in/2014/01/how-to-insert-data-into-databasesql.html



No comments:

Post a Comment