コード例 #1
0
 void VerDataMedicamento()
 {
     dt2 = objTarifarioBL.TarifarioMedicamento_ListarxEstablecimientoId(int.Parse(cboEstablecimiento.SelectedValue.ToString()), int.Parse(dgvVersion.CurrentRow.Cells[0].Value.ToString()), txtDescripcion.Text);
     if (dt2.Rows.Count > 0)
     {
         dgvMedicamento.DataSource = dt2;
         dgvMedicamento_CellFormatting();
         lblMensaje.Text = "Resultado : " + dt2.Rows.Count + " Registros";
     }
     else
     {
         dgvMedicamento.DataSource = null;
         lblMensaje.Text           = "";
     }
 }