private void Form1_Load(object sender, EventArgs e) { ConfigureIgnoreList(); dataHelper = new Helper_Data(); dataHelper.EstablishConnection(); bindingSource = new BindingSource(); result = dataHelper.ReturnDataset(); groupBox2.Enabled = false; }
public void UpdateDatasource(string newBaseValue) { dataGridView1.CurrentCell.Value = newBaseValue; bindingSource.EndEdit(); result.AcceptChanges(); if (dataGridView1.CurrentRow.Cells[9].Value != DBNull.Value) { dataHelper.UpdateRowExpValue(Convert.ToInt32(dataGridView1.CurrentRow.Cells[9].Value), null, null, newBaseValue); } else { dataHelper.UpdateRowExpValue(null, Convert.ToInt32(dataGridView1.CurrentRow.Cells[8].Value), Convert.ToInt32(dataGridView1.CurrentRow.Cells[7].Value), newBaseValue); } dataHelper.EstablishConnection(); result = dataHelper.ReturnDataset(); }