public void grdAmendments_UpdateCommand(object sender, DataGridCommandEventArgs e)
 {
     String DetailId = "";
     DetailId = grdAmendments.DataKeys[Convert.ToInt32(e.Item.ItemIndex)].ToString();
     contingency _wc = new contingency();
     _wc.UpdateAmendmentList(Convert.ToInt32(DetailId), ((DropDownList)(e.Item.FindControl("ddlamendment_type"))).SelectedItem.Value, ((TextBox)(e.Item.FindControl("txtamendment_number"))).Text, ((TextBox)(e.Item.FindControl("txtamendment_date"))).Text, ((TextBox)(e.Item.FindControl("txtIamendment_impact"))).Text, ((TextBox)(e.Item.FindControl("txtInotes"))).Text);
     grdAmendments.EditItemIndex = -1;
     grdAmendments.ShowFooter = true;
     BindAmendmentList(Convert.ToInt32(ViewState["EstNum"].ToString()));
 }