BindingSource.ResetBindings

R

Rainer Queck

Hello NG,

for a bunch of controls I am using databinding to conect them to som
object.properies in my application.
Some of these property read the data directly from a dataTable.

If my object changes, I use <BindingSource>.ResetBindings to get the new
data to the controls.

In now have the problem, that the controls wich are bound to properties
that contain DBNull (becaus the underlaying table.column is DbNull) keep
ther old value while others refresh.

I would have expected, that a textbox in this case would show a empty
string, which obviously is not the case.

What is it I am doing wrong?

Thanks for hints and help.

Regards
Rainer Queck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top