views:

52

answers:

1

Hi,

I'm trying to change the Mode property of a databinding in code, but because databindings can't be changed after being set, I'm getting exceptions thrown. I was thinking of just making a copy of the databinding and using that, but the Binding class doesn't seem to be cloneable. Is there still a way to do it?

If the above is not practical to do, is there a minimum of properties that I can copy manually and have it work?

Thanks!

A: 

Haven't tried this, but perhaps it's possible to use and clone a BindingSource?

Dmitri Nesteruk