Ejemplo n.º 1
0
 protected void grillaTandaItem_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
 {
     try
     {
         ASPxGridView grillaTandaItems = sender as ASPxGridView;
         int          codigoTalle      = Convert.ToInt32(e.NewValues["codigoTalle"]);
         int          codigoColor      = Convert.ToInt32(e.NewValues["codigoColor"]);
         int          cantidad         = Convert.ToInt32(e.NewValues["cantidad"]);
         ControladorGeneral.InsertarActualizarTandaItem(0, Convert.ToInt32(grillaTandaItems.GetMasterRowKeyValue()), cantidad, codigoTalle, codigoColor);
         e.Cancel = true;
         grillaTandaItems.CancelEdit();
         CargarGrillaTandaItems(grillaTandaItems, Convert.ToInt32(grillaTandaItems.GetMasterRowKeyValue()));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }