January 30th, 2010, 03:10 PM
WPF - How to programatically PAUSE databinding
I have a textbox that is bound (oneway) to a datatable that updates a couple of time a second. So the textbox value continually reflects changes in datatable. When I enter the textbox to manually set a value, the binding causes the value to continually be overwritten. How do I stop this? When I have entred a value (textbox lost focus) I want the textbox to return to display the bound value and not the value I have just entered manually.
Plase note that the textbox is one of many ... each attached to a field in a DataTable. I do not want the datatable to stop sending updates to the other textboxes while I alter one textbox. Note it is OneWay binding.
I don't believe I can prevent update on a single field in a DataTable.
Also is it not possile to remove binding and reset it programatically .. rather than controlling the sourse that is updating?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.