Gridview rowupdating datakeynames
If you like my work; you can appreciate by leaving your comments, hitting Facebook like button, following on Google , Twitter, Linkedin and Pinterest, stumbling my posts on stumble upon and subscribing for receiving free updates directly to your inbox .
Then have a seperate function to update the values entered and finally call your Bind Grid() function which again binds the gridview..So we need to create a Stored Procedure on which we pass all parameters that are updateable along with the primary key value, in other words the row data's key value that is being updated.We use the Row Updating event of Grid View to update the record in the database table.Note: I'm using stored procedure to update my DB table.To manually specify columns for the gridview you have to set Auto Generate Columns="false".Infact load table works perfectly and also I have a remove that is working fine!
Also to test to make sure the correct function is called when edit is triggered I printed a test on the screen and it work! I don't have my code infront of me so I can't post my load table functionso here is the problem var Start Time = row.
Find Control("txt Start Time") as Text Box; var End Time = row.
Find Control("txt End Time") as Text Box; var id = row.
So first we need to move to an updateable row record in the Text Box.
To do that we need a Row Editing event of the Grid View.
Dear All, In Row Updating event of a Grid View I am trying to update the database picking the values of bound text Boxes in the Edit Item Templates. I confirmed update works by giving some other text vlaues instead of those retrieved from TB1, TB2, and TB3. I checked your code, it is working very good; below example of the code I used here...