Ejemplo n.º 1
0
 protected void grillaTalles_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
 {
     try
     {
         ASPxGridView grillaTalles = sender as ASPxGridView;
         string       descripcion  = e.NewValues["descripcionTalle"].ToString();
         ControladorGeneral.InsertarActualizarTalle(Convert.ToInt32(grillaTalles.GetMasterRowKeyValue()), 0, descripcion);
         e.Cancel = true;
         grillaTalles.CancelEdit();
         CargarGrillaTalles(grillaTalles, Convert.ToInt32(grillaTalles.GetMasterRowKeyValue()));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }