M
mzam
Hi All,
I have a set of textboxes bound to a typed dataset (ds1). This dataset
contains one table which contains only one record.
This is an example on how I do the binding for the textboxes:
txtDescription.DataBindings.Add(new Binding("Text", ds1.ShareClass,
"Name"));
When I am about to save the changes I call the ds1.HasChanges() method and
it always returns false even though I made changes in the bound textboxes.
if (this.ds1.HasChanges())
{
DSFund getChangesDS = new DSFund();
getChangesDS.Merge(ds1.GetChanges());
businessFacade.SaveFund(getChangesDS);
ds1.Merge(getChangesDS);
ds1.AcceptChanges();
}
Am I missing a line of code before calling the HasChanges()?
Thanks for your help,
mZam
I have a set of textboxes bound to a typed dataset (ds1). This dataset
contains one table which contains only one record.
This is an example on how I do the binding for the textboxes:
txtDescription.DataBindings.Add(new Binding("Text", ds1.ShareClass,
"Name"));
When I am about to save the changes I call the ds1.HasChanges() method and
it always returns false even though I made changes in the bound textboxes.
if (this.ds1.HasChanges())
{
DSFund getChangesDS = new DSFund();
getChangesDS.Merge(ds1.GetChanges());
businessFacade.SaveFund(getChangesDS);
ds1.Merge(getChangesDS);
ds1.AcceptChanges();
}
Am I missing a line of code before calling the HasChanges()?
Thanks for your help,
mZam