Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How control when textBox.Text is changed when currentItem in bindingSource is changed

$
0
0
I have dataGridView bound to some bindingSource. In textBox I display currentItem values. 
I want this behaviour:
When user click MoveNext on bindingNavigator(or previous, doesn't matter), I want first display simple dialog if he want to save changes and then update all textBoxes with this new selected item values from bindingSource.
I have tried PositionChanged event, but it changes text before dialog shows.

Is there any way so that user first see Dialog and after he confirm/denied saving changes, he see new values is textBox? I've also tried to change textBox update mode to "OnPropertyChange", but result is the same.

Viewing all articles
Browse latest Browse all 2535

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>