c# - How to retrieve updated data from gridview dynamically? -


i populated gridview datatable this:

protected void btnedit_click(object sender, eventargs e)  {     fillgrid();  }  public void fillgrid() {     foreach (listitem item in lbltype.items)     {         if (item.selected)         {             datatable data = appdataaccess.getdata(item.value, txtid.value);             gridview1.datasource = data;             gridview1.databind();         }     }  } 

it's not possible retrieve updated data following because data comes several db tables.

  protected void grdcontact_rowupdating(object sender, gridviewupdateeventargs e) {     int index = gridview1.editindex;     gridviewrow row = gridview1.rows[index];     textbox t1 = row.findcontrol("textbox1") textbox;     textbox t2 = row.findcontrol("textbox2") textbox;     string t3 = gridview1.datakeys[e.rowindex].value.tostring();     lblrecord.text = "updated record " + t1.text + "," + t2.text + "value bound field" + t3; } 

is there way can retrieve updated data dynamically gridview rows? in advance.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -