For example, I edit the 2nd row (e.rowindex = 1), but it get the 1st row (e.rowindex=0) value. Data Row Then 'Monday Dim Col1_SL = CType(Gridview1. Find Control("cb1_SL"), Check Box) Try to search the control in the row cells like row. Find Control("cb1_SL") Thanks, I had set the enableviewstate to true now. But when running the Row Updating event, it get the upper row data. Find Control("cb1_SL"), Check Box) Dim Col1_VL = CType(Gridview1.
Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. When I click on the edit button the update and cancel button appear.Upon modifying the values in textbox which come from Edit Item Template , the new values dont show in the event handler rowupdating(), instead I get the values which appear when the page was rendered.Although this isn't as big of a problem when you're referencing the text from web controls, getting in the habit now will prevent you from serious headaches and inefficiently checking for null and empty later. NET 4.0, you should have access to event, you need to pull the new values out of the front-end controls, and then re-bind your data.It looks like your source code is pretty close to the MSDN source code here.