private void BtnBuscar2_Click(object sender, EventArgs e) { try { DgvListado.DataSource = NTarea.Buscar(Convert.ToString(CboBuscarDepa.Text)); //this.Limpiar(); //this.Formato(); LblTotal.Text = "Total Registros: " + Convert.ToString(DgvListado.Rows.Count); } catch (Exception ex) { MessageBox.Show(ex.Message + ex.StackTrace); } }
private void ListarNueva() { if (rbmanual.Checked == true) { dgvnueva.DataSource = NTarea.Buscar(Convert.ToInt32(cmbfabric.SelectedValue)); } else { if (rbCopiar.Checked == true) { dgvnueva.DataSource = NTarea.Buscar(Convert.ToInt32(cmbnuevafab.SelectedValue)); } } }
private void BuscarNueva() { dgvnueva.DataSource = NTarea.Buscar(Convert.ToInt32(cmbnuevafab.SelectedValue)); }
private void Buscar() { dgvtarea.DataSource = NTarea.Buscar(Convert.ToInt32(cmbbuscar.SelectedValue)); }