From: Mr. X. on
Hello.
I need an example, please, of using serveral bindingSource on the same
datatable.
(Manually - not directly to DataGridView).
I am changing a specific row (several columns).
After that I open a window,
and change only one column.
On the old & new window I can change the columns, and have other
bindingSource.
How the changes on the new windows affect the old one.

(On new window, something like :
Public Sub New(ByVal bs As BindingSource, ByVal value As String)
' bs is old binding source
' value is the old value
MyBase.New()
InitializeComponent()
FMainDs = New myds()
FBs = New BindingSource()
FBs.DataSource = FMainDs.formulas
drv = bs.Current
dr = drv.Row
txtValue.DataBindings.Add("Text", FBs, "value")
txtValue.Text = value
.....
After changing the row :
dr.EndEdit()
dr.AcceptChanges()
....
But when going to the old calling window I see the old value (on the old
form).
Why cannot I see the new one ?

Need an example, please.

Thanks :)

From: Mr. X. on
....
some code before the above :
Dim FBs As BindingSource
Dim FMainDs As dsFormulas
Dim drv As DataRowView
Dim dr As DataRow


"Mr. X." <nospam(a)nospam_please.com> wrote in message
news:OdZ5Lp$BLHA.4400(a)TK2MSFTNGP05.phx.gbl...
> Hello.
> I need an example, please, of using serveral bindingSource on the same
> datatable.
> (Manually - not directly to DataGridView).
> I am changing a specific row (several columns).
> After that I open a window,
> and change only one column.
> On the old & new window I can change the columns, and have other
> bindingSource.
> How the changes on the new windows affect the old one.
>
> (On new window, something like :
> Public Sub New(ByVal bs As BindingSource, ByVal value As String)
> ' bs is old binding source
> ' value is the old value
> MyBase.New()
> InitializeComponent()
> FMainDs = New myds()
> FBs = New BindingSource()
> FBs.DataSource = FMainDs.formulas
> drv = bs.Current
> dr = drv.Row
> txtValue.DataBindings.Add("Text", FBs, "value")
> txtValue.Text = value
> ....
> After changing the row :
> dr.EndEdit()
> dr.AcceptChanges()
> ...
> But when going to the old calling window I see the old value (on the old
> form).
> Why cannot I see the new one ?
>
> Need an example, please.
>
> Thanks :)