private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { DataGridViewRow row = this.dataGridView1.Rows[e.RowIndex]; GetInformation(row); UpdateAndSellUI updateAndSell = new UpdateAndSellUI(aBook); //this.Hide(); updateAndSell.ShowDialog(); } }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if( e.RowIndex>=0) { DataGridViewRow row = this.dataGridView1.Rows[e.RowIndex]; GetInformation(row); UpdateAndSellUI updateAndSell = new UpdateAndSellUI(aBook); //this.Hide(); updateAndSell.ShowDialog(); } }