不知道大家遇到过这种情况没,当你把picturebox绑定到bindingSource1的照片字段时,如果下一条记录照片为空时,picturebox上不会显示为空,还会显示上一条记录的照片,我试了好多方法都不行,后来我用拖动设计的方法去让picturebox自己去绑定bindingSource1,发现这个问题还是存在,不知道大家遇到过这个问题没,问题的原因到底是出在哪呢
this.pictureBox1.DataBindings.Add(new System.Windows.Forms.Binding("Image", this.bindingSource1, "photo", true));