Hello,
I'm using typed dataset for databinding to windows controls and I'm having
some problems.
I'm trying to move all business logic to datatable column_changing events
and the problem that I'm having is when I change some other column, control
value doesn't update immediately until I call endcurrentedit on
bindingmanager which doesnt happen until user click update button.
Here's my problem:
Private Sub BusinessPartner DataTable_Colum nChanging(ByVal sender As
System.Object, ByVal e As System.Data.Dat aColumnChangeEv entArgs) Handles
Me.ColumnChangi ng
Select Case e.Column.Column Name
Case Me.dbaColumn.Co lumnName
Me(0).categoryI D = "changed_column "
End Select
End Sub
Now, unerlying dataset.datatab le(0).categoryI D is indeed changed but
databound textbox control remains the same.
How can I force databinding.upd ate from dataset/datatable?
Thanks,
Vlado
I'm using typed dataset for databinding to windows controls and I'm having
some problems.
I'm trying to move all business logic to datatable column_changing events
and the problem that I'm having is when I change some other column, control
value doesn't update immediately until I call endcurrentedit on
bindingmanager which doesnt happen until user click update button.
Here's my problem:
Private Sub BusinessPartner DataTable_Colum nChanging(ByVal sender As
System.Object, ByVal e As System.Data.Dat aColumnChangeEv entArgs) Handles
Me.ColumnChangi ng
Select Case e.Column.Column Name
Case Me.dbaColumn.Co lumnName
Me(0).categoryI D = "changed_column "
End Select
End Sub
Now, unerlying dataset.datatab le(0).categoryI D is indeed changed but
databound textbox control remains the same.
How can I force databinding.upd ate from dataset/datatable?
Thanks,
Vlado
Comment