private void FiltrarStockTextBox_TextChanged(object sender, EventArgs e) { if (FiltrarStockTextBox.Text.Trim() != string.Empty) { stock = new DStock(); DgvStock.DataSource = stock.SelectStockByNombre(FiltrarStockTextBox.Text.Trim()); DgvStock.Refresh(); } else { SelectStock(); } }
private void SelectStock() { stock = new DStock(); DgvStock.DataSource = stock.SelectStock(); DgvStock.Refresh(); }
private void ActualizarListadoStock_Click_1(object sender, EventArgs e) { stock = new DStock(); DgvStock.DataSource = stock.SelectStock(); DgvStock.Refresh(); }