private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            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();
        }
 private void button_DisplaySelectedObject_Click_1(object sender, EventArgs e)
 {
     DisplaySelectedObject app = new DisplaySelectedObject(base.ident);
     app.Show();
 }
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string s1 = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
            string s2 = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
            string s3 = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
            string s4 = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
            string s5 = dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString();
            string s6 = dataGridView1.Rows[e.RowIndex].Cells[5].Value.ToString();
            string s7 = dataGridView1.Rows[e.RowIndex].Cells[6].Value.ToString();
            string s8 = dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString();
            string s9 = dataGridView1.Rows[e.RowIndex].Cells[8].Value.ToString();
            string s10 = dataGridView1.Rows[e.RowIndex].Cells[9].Value.ToString();
            string s11 = dataGridView1.Rows[e.RowIndex].Cells[10].Value.ToString();

            docNum = Convert.ToInt32(s1);
            //docType = Convert.ToInt32(s2);
            docType = 45;
            extRef = Convert.ToInt32(s3);
            intRef = Convert.ToInt32(s4);
            status = Convert.ToInt32(s5);
            docRef = Convert.ToInt32(s6);
            textValue1 = s7;
            textValue2 = s8;
            numValue1 = Convert.ToInt32(s9);
            numValue2 = Convert.ToInt32(s10);
            comments = s11;

             DisplaySelectedObject disp = new DisplaySelectedObject(ident, docNum, docType, extRef, intRef, status, docRef, textValue1, textValue1, numValue1, numValue2, comments);
               // DisplaySelectedObject disp = new DisplaySelectedObject(ident);
            disp.populateFields(ident, docNum, docType, extRef, intRef, status, docRef, textValue1, textValue1, numValue1, numValue2, comments);
              disp.Show();
        }