After fiddling with this for a while, I tried the endedit and it worked.
acceptchanges also works.
Thanks for pointing me at it, Bonnie.
Is there any functional difference between the two?
The doc implies that the datasource will be updated. That's not happening, and I don't want it to.
Under what circumstances would endedit cause the datasource to be updated?
>>>I thought you said one that wasn't working was bound to an object? :
>"The only difference I can see is the data in the first case is coming from a datatble, while in the second case it's coming from properties in an object "
>
>Sorry for the confusion, Viv. In both cases, the textbox is bound to a datatable.
>In the case that works, the datatable is being updated from another data table.
>In the case that doesn't work, the datatable is being updated from an object.
Maybe try an .EndEdit() on the DataRow you've just updated?
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.