Using several bindingSource on the same datatable.

M

Mr. X.

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 :)
 
M

Mr. X.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top