private void shareValueGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (shareValueGrid.Rows[e.RowIndex] != null) { MaintShareValueHistory maintValue = new MaintShareValueHistory((EMMADataSet.ShareValueHistoryRow) (((DataRowView)shareValueGrid.Rows[e.RowIndex].DataBoundItem).Row)); maintValue.ShowDialog(); DisplayData(); } }
private void btnNew_Click(object sender, EventArgs e) { MaintShareValueHistory newValHist = new MaintShareValueHistory(_currentCorp); newValHist.ShowDialog(); DisplayData(); }