Having .NET control databinding update dataSource fired onChange (as opposed to onUnfocus)?
B开发者_运维问答y default, a property bound to a NumericUpDown is updated only when the NumericUpDown loses focus.
Is there any way I can make it being updated right away with the displayed value, e.g. when the user clicks the up or down arrow?
Thanks a lot for any hints!
Select your NumericUpDown control in desgin mode. Then switch to the properties window and expand "(DataBindings)". Double click on "(Advanced)", a new window opens. You'll see a drop down "Data Source Update Mode", select "OnPropertyChanged". Done.
精彩评论