Winforms BindingSource
I have a binding source object that fills some textboxes. In run time, af开发者_开发问答ter editing the textboxes I want to be able to retrieve the old values.
how can I retrieve the Textbox's old value and refresh the screen ? Maybe the binding source has history or something ?!
No, it does not. Databinding is not about keeping history. You want the original values, keep them outside of your binding source and controls ;) Basic design principle - to keep the whole databinding infrastructure lean. Because in MANY cases the history is not needed, and in the others it is best implemented in the business side, not the databinding.
精彩评论