gridview - Updating row directly in ASP.NET using databind() ! Please help me -


this difficult problem found how solve when cell on table don't receive input value user . please show me how retrieve value updated cell . please me . boring because of seeing problem

protected void gridview1_rowupdating(object sender, gridviewupdateeventargs e) {     int id;      id = int.parse(gridview1.datakeys[e.rowindex].value.tostring());      foreach (gridviewrow row in gridview1.rows)     {         value1 = row.cells[2].text;//only receive lastest value . cann't receive value when updated     }      //response.write("check value" + value1);     dataclassescheckdatacontext ctx = new dataclassescheckdatacontext();     ctx.editstudentproc(id, value1);     gridview1.datasource = ctx.students;     gridview1.editindex = -1;     gridview1.databind(); } 

on rowupdating updated values in e.newvalues, ref http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridviewupdateeventargs.newvalues.aspx


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -