EDN Admin
Well-known member
Hi,
I have a (read-only) DGV which is bound to a BindingSource (whose source is a datatable).
I have a few controls beneath the DGV which are also databound to BS
<pre>txtDesc.DataBindings.Add(new Binding("Text", bs, "Description", true, DataSourceUpdateMode.OnPropertyChanged, DBNull.Value));[/code]
As these are databound, whenever user selects a row in DGV, the details are autoatically populated in controls below.
Assume user has clicked Row 1. Details are displayed in controls. User changes some value in a textbox.
Now, the changes are reflected (bindingsources ListChanged event fires) only when user clicks another row. Is this (BSs update) by design or any other way to handle this? I need the underlying datasource to be updated immediately, as soon as user
changes something in databound controls.
Thanks,
Sathya<span style="font-size:x-small
<hr class="sig Sathya
View the full article
I have a (read-only) DGV which is bound to a BindingSource (whose source is a datatable).
I have a few controls beneath the DGV which are also databound to BS
<pre>txtDesc.DataBindings.Add(new Binding("Text", bs, "Description", true, DataSourceUpdateMode.OnPropertyChanged, DBNull.Value));[/code]
As these are databound, whenever user selects a row in DGV, the details are autoatically populated in controls below.
Assume user has clicked Row 1. Details are displayed in controls. User changes some value in a textbox.
Now, the changes are reflected (bindingsources ListChanged event fires) only when user clicks another row. Is this (BSs update) by design or any other way to handle this? I need the underlying datasource to be updated immediately, as soon as user
changes something in databound controls.
Thanks,
Sathya<span style="font-size:x-small
<hr class="sig Sathya
View the full article