private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     string pid = null;
     if (e.RowIndex >= 0)
     {
         DataGridViewRow row = this.dataGridView1.Rows[e.RowIndex];
         pid = row.Cells["ID"].Value.ToString();
     }
     MgfViewInfo miv = new MgfViewInfo(pid);
     miv.ShowDialog();
 }
        private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string pid = null;

            if (e.RowIndex >= 0)
            {
                DataGridViewRow row = this.dataGridView1.Rows[e.RowIndex];
                pid = row.Cells["ID"].Value.ToString();
            }
            MgfViewInfo miv = new MgfViewInfo(pid);

            miv.ShowDialog();
        }