private void LimpiarCalibres(string c_codigo_pai) { CLS_Calibres selcal = new CLS_Calibres(); selcal.c_codigo_pai = txtCodigoPai.Text; selcal.MtdSeleccionarCalibrePais(); if (selcal.Exito) { dtgPrecios.DataSource = selcal.Datos; dtgValPrecios.ExpandAllGroups(); } }
private void CargarCalibres(string c_codigo_pai) { CLS_Calibres selcal = new CLS_Calibres(); selcal.c_codigo_pai = txtCodigoPai.Text; selcal.MtdSeleccionarCalibrePais(); if (selcal.Exito) { if (selcal.Datos.Rows.Count > 0) { dtgPrecios.DataSource = selcal.Datos; dtgValPrecios.ExpandAllGroups(); } else { XtraMessageBox.Show("No existen Calibres para este Pais"); } } }