F
ftrl
Hello,
On a Winform, a dataset and a binding source.
I would like to have 2 TextBox to the same column.
I bind the Text property to the column like this (extract from
Form1.Designer.cs) :
textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text",
this.bindingSource1, "Column1", true));
textBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text",
this.bindingSource1, "Column1", true));
If I type something in the first TextBox, when I tab out, I would like
the second TextBox filled by the text (wich now is in the DataRow). It
is not the case. The second TextBox stays blank.
More generally, when I change a column value in the active DataRow, I
would like the columns's bound control to be refreshed.
Any suggestion ?
(sorry for my english).
Jean
On a Winform, a dataset and a binding source.
I would like to have 2 TextBox to the same column.
I bind the Text property to the column like this (extract from
Form1.Designer.cs) :
textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text",
this.bindingSource1, "Column1", true));
textBox2.DataBindings.Add(new System.Windows.Forms.Binding("Text",
this.bindingSource1, "Column1", true));
If I type something in the first TextBox, when I tab out, I would like
the second TextBox filled by the text (wich now is in the DataRow). It
is not the case. The second TextBox stays blank.
More generally, when I change a column value in the active DataRow, I
would like the columns's bound control to be refreshed.
Any suggestion ?
(sorry for my english).
Jean