Hello
write the following code & function to GridViewevent
public void loadTaxDataToGrid()
{
// feach the record from database and bind to gridview1
}
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
loadDataToGrid();
}
protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
GridView1.EditIndex = -1;
loadDataToGrid();
}
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
try
{
string "DataKeyNames"= (string)GridView1.DataKeys[e.RowIndex].Value;
TextBox "Control Name from GridView1" = (TextBox)GridView1.Rows[e.RowIndex].FindControl("Control Name from GridView1");
//// Update that Record for that write store procedure
GridView1.EditIndex = -1;
loadDataToGrid();
}
}
catch (Exception ex)
{
lblmsg.Text = ex.Message;
}
}
bye....