protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { try { objBusinessUI.ProductCategory_ID = Int32.Parse(GridView1.DataKeys[e.RowIndex].Value.ToString()); GridViewRow row = (GridViewRow)GridView1.Rows[e.RowIndex]; objBusinessUI.ProductCategory_Name = ((TextBox)(GridView1.Rows[e.RowIndex].FindControl("txtProdCategory"))).Text.Trim(); // objBusinessUI.ProductCategory_Name = (GridView1.Rows[e.RowIndex].FindControl("txtProdCategory") as TextBox).Text; objBusinessUI.UpdatedBy = "Admin"; objBusinessUI.UpdatedOn = DateTime.Now; string strmsg = objDataUI.UpdateProductCat(objBusinessUI); if (strmsg == "SUCCESS") { } else { } GridView1.EditIndex = -1; BindGridData(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)