예제 #1
0
 protected void grillaTalleres_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
 {
     try
     {
         ASPxGridView grillaTalleres = sender as ASPxGridView;
         string       descripcion    = e.NewValues["descripcion"].ToString();
         string       contacto       = e.NewValues["contacto"].ToString();
         string       responsable    = e.NewValues["responsable"].ToString();
         ControladorGeneral.InsertarActualizarTaller(Convert.ToInt32(grillaTalleres.GetMasterRowKeyValue()), 0, descripcion, responsable, contacto);
         e.Cancel = true;
         grillaTalleres.CancelEdit();
         CargarGrillaTalleres(grillaTalleres, Convert.ToInt32(grillaTalleres.GetMasterRowKeyValue()));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }