Databinding to a pictureBox

Databinding to a pictureBox

Post by Jan Nord [ » Wed, 20 Oct 2004 19:07:42

I have problems data-binding to a picturebox. If you bind to the
"Image" property, with suitable Parse and Format methods (in this case
to/from a byte[]), you will find that Parse() keeps getting called
whenevever you change the current row in a grid connected to the same

This is due to Binding.PullData being called on EndEdit, which will
always read the data since there is no "ImageChanged" event on

This may in itself be reasonable, however it happens even it the
property bound to is made ReadOnly, and that seems totally unreasonable.

If there any way to suppress the pulling of data?

Jan Nord
Senior Software Architect
MDA products group