private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e) { MessageBox.Show("It's Here"); string docTypeStr = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(); string docNumStr = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); DisplaySelectedObject pds = new DisplaySelectedObject(base.ident, textBox_TableName.Text, docTypeStr, docNumStr); pds.Show(); }
protected override void button_DisplaySelectedObject_Click(object sender, EventArgs e) { DisplaySelectedObject app = new DisplaySelectedObject(base.ident); app.Show(); }