TextBox

TextBox

Postby carrieri » Wed 18 Nov 2009 17:01

Hi,

A very basic question: I've placed an oracleConnection, an oracleDataTable and an oracleCommand in a form. If I edit data in a DataGridView and call DataTable Update method, updates are applied immediately. On the other side, if data is edited through a TextBox, nothing happens until I move record on DataGridView.

Any tip?

TextBoxes are linked to DataTable via:

textBox1.DataBindings.Add("Text", oracleDataTable1, "DEPTNO");

Thanks,
carrieri
 
Posts: 7
Joined: Mon 26 Sep 2005 17:35

Postby carrieri » Wed 18 Nov 2009 20:23

Hi,

I've placed the following statement before DataTable Update:

BindingContext[dtPsap].EndCurrentEdit();

and it worked fine.

Thanks,
carrieri
 
Posts: 7
Joined: Mon 26 Sep 2005 17:35


Return to dotConnect for Oracle