private void cargarTipoTrabajador() { cbProducto.DataSource = NTipoTrabajador.Mostrar(); cbProducto.ValueMember = "Codigo"; cbProducto.DisplayMember = "Tipo"; cbProducto.SelectedIndex = -1; }
private void cargarTrabajador() { cbCargo.DataSource = NTipoTrabajador.Mostrar(); cbCargo.ValueMember = "Codigo"; cbCargo.DisplayMember = "Tipo"; cbCargo.SelectedIndex = -1; //lblPrueba.Text = cbCategoria.SelectedValue.ToString(); }
private void mostrarTipoTrabajador() { this.dataListado.DataSource = NTipoTrabajador.Mostrar(); if (this.dataListado.Rows.Count == 0) { this.dataListado.Visible = false; } else { this.dataListado.Visible = true; this.ocultarColumnas(); } }
private void Mostrar() { this.dataListado.DataSource = NTipoTrabajador.Mostrar(); lblTotal.Text = "Total de Registros: " + Convert.ToString(dataListado.Rows.Count); if (this.dataListado.Rows.Count == 0) { this.dataListado.Visible = false; } else { this.dataListado.Visible = true; this.ocultarColumnas(); } }