You can call the EndCurrentEdit method on the bindingmanager for the TextBox.
[C#]
this.textBox1.Text = 'XXXX'; //set the value
this.textBox1.DataBindings['Text'].BindingManagerBase.EndCurrentEdit(); //end the edit
[VB.NET]
Me.TextBox1.Text = 'XXXX'
Me.TextBox1.DataBindings('Text').BindingManagerBase.EndCurrentEdit()
Share with