This post has been edited by jpcsmit: 20 January 2010 - PM @eclipsed4utoo: Then you have not truly delved into Grid Views, grasshopper.
Using Template Fields in the Grid View Control Yes there is, but that's a Bound Field, which means the user can't change the value in the Grid View.
i went through for loop and if loop and did all things which were of total failure i came across this right now. The code which you provided roughly a fortnight has done wonders for me. Click 'Display the Table with data in the gridview 'clear the current content of the Table dt. Find Control("txt City"); and i assume that the txt City. Old Values and New Values both have length 0, and the Text Box approach described above gives a null reference after conversion. I've posted the ASP Code, and decided to skip the actual binding code, since it works great; checked it with the debugger.For demonstration I have created a database (named Database.mdf) in which we have a table named tbl_Employee.So I am having an issue with doing an update in a Gridview during an On Row Updating event.For the user to be able to check the checkbox, it needs to be a Template Field.For example: Now this does get the control that is in the Item Template, not the Edit Item Template.