pictureBox图片随dataGridView的选择项而变化

来源:互联网 发布:拉普拉斯定理分块矩阵 编辑:程序博客网 时间:2024/04/28 07:43

pictureBox1.Image = Image.FromStream(new MemoryStream((byte[])dataGridView1.CurrentRow.Cells[14].Value, false));

其中Cells[14]为第14列.需要多少列自设!