Tuesday, March 20, 2007

modifying a textbox bound to datasource - rowstate always says UNCHANGED - .NET VB

modifying a textbox bound to datasource - rowstate always says UNCHANGED - .NET VB: "Re: modifying a textbox bound to datasource - rowstate always says UNCHANGED
John

One of the most asked questions in these newsgroups.
For databinding there has to be a change of a control others than a button.
Therefore you have to push the data down by hand when you click a button.
(To do it efficient you can do it before the update command)

BindingContext(ds.Tables(0)).EndCurrentEdit()

I hope this helps,

Cor"

No comments: