Trouble with DataView and BindingSource

Hi.

 

Visual Basic 2005 Express Edition

OleDb Base

 

There are two controls DataView and two controls DataGridView.

 

DataView1.Table = DataSet.Tables(0)

DataView2.Table = DataView1.Table

 

The first DataGridView is binded to DataView1 through BindingSource and the second:

 

DataGridView2.DataSource = DataView2

 

Also in the project there are TextBoxes which are binded to DataView1 through the same BindingSource.

The data from the TextBoxes are being refreshed in DataView1 and DataView2 only with the changing position of the record in the table.

 

The question is how to refresh data among the TextBoxes and DataView2 when the event LostFocus of the TextBoxes rises

 

Thanks.



Answer this question

Trouble with DataView and BindingSource

  • BryanCTG

    call end edit on binding source.

     YourBindingSource.EndEdit();

    and put this in LostFocus event

    cheers



  • Trouble with DataView and BindingSource