单击DataGridView某一选项,在PictureBox中分别显示相应图片,调不出来~~~
单击DataGridView某一选项,在PictureBox中分别显示相应图片private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
string path = dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["图片"].Value.ToString();
this.pictureBox1.Image = Image.FromFile(path);
}
可是没反应,到底是什么问题呢?请教高手,谢谢