protected void GridView3_RowUpdating(object sender, GridViewUpdateEventArgs e) { GridViewRow row = (GridViewRow)GridView3.Rows[e.RowIndex]; DataTable tableupd = ViewState["CurrentTable"] as DataTable; //How to Update datatable here..... GridView3.DataSource = tableupd; GridView3.DataBind(); }
foreach(DataRow dr in table.Rows) // search whole table { if(dr["Product_id"] == 2) // if id==2 { dr["Product_name"] = "cde"; //change the name //break; break or not depending on you } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)