text box with bindingsource

G

Guest

Does a text box whose text property is set to a bindingsource automatically
report text changes back to the binding source then on to the dataset? If not
how can I make it tell the dataset that text in the text box has changed and
to set the row to modified? I have tried this with no luck

formclosing()
this.clientsBindingSource.EndEdit();
if (fB7MobileDBDataSet.HasChanges()) no changes are detected here
{ so this never happens
fB7MobileDBDataSet.GetChanges(DataRowState.Modified);
this.fB7MobileDBDataSet.Clients.AcceptChanges();

this.clientsTableAdapter.Update(this.fB7MobileDBDataSet.Clients);
Thanks Jon Stroh
 
I

Ilya Tumanov [MS]

It does on Validation event (default). If Validation never happens, no
changes would be reported.

You can change that by setting DataSourceUpdateMode:



http://msdn2.microsoft.com/en-us/library/system.windows.forms.binding.datasourceupdatemode.aspx

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

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