高手指点,两个窗体数据如何联系
form1的CellDoubleClick事件中,双击datagridview1中显示数据库的索引值的单元格,弹出form2,设置若干个textbox,用来显示数据库中索引对应的数据值。
------解决方案--------------------http://topic.csdn.net/u/20110407/19/c1068d69-7331-4d02-bc0b-f5ba7a5f8dd8.html
------解决方案--------------------        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
       {
           string strId = dataGridView1.SelectedRows[0].Cells["ID"].Value.ToString();
           UpdateForm upf = new UpdateForm(strId);
           upf.ShowDialog();
           dgvSet();
       }