Re: HasChanges returns false for one row, true when more than one
- From: "Jim Rand" <jimrand@xxxxxxxxxxxxx>
- Date: Mon, 27 Aug 2007 17:04:19 -0400
Details, details, .....
private void timer_Tick(object sender, EventArgs e)
{
if (dsNonMembers.HasChanges())
{
SetButtons(true);
}
else
{
if (bsNonMembers.Count > 0)
{
if
(((DataRowView)bsNonMembers.Current).Row.HasVersion(DataRowVersion.Proposed))
{
SetButtons(true);
}
}
}
}
EndEdit writes the changes to the dataset. With one row, you have to peek.
If a Proposed is found, call EndEdit on the underlying binding source and
the write your changes back to the database.
"Mike G Burton" <Mike G Burton@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2D975FA1-C248-4E56-8470-D424FF28E7FF@xxxxxxxxxxxxxxxx
I have a (third-party) grid bound to a dataset for display purposes, but
during the operation in question I'm directly updating the dataset from my
application code. When I call HasChanges on the dataset, I get False if
the
dataset has a single row, but True if the dataset has multiple rows. Has
anyone seen this behaviour, and is there a workaround?
Thanks,
mgb
.
- Prev by Date: Re: HasChanges returns false for one row, true when more than one
- Next by Date: Re: Problem with data table manipulation prior to update
- Previous by thread: Re: HasChanges returns false for one row, true when more than one
- Next by thread: Re: Problem with data table manipulation prior to update
- Index(es):