Link to home
Start Free TrialLog in
Avatar of pointeman
pointemanFlag for United States of America

asked on

Typed DataSet GetChanges Always Nothing?

I have a strong-typed dataset1 and bindingsource1 bound to several textboxes. don't understand why the Getchanges() method always returns nothing, messagebox (below) never opens. I know there is data in the dataset1, just dtChanges is empty?

Q. What am I doing wrong?


bindingSource1.DataSource = dataSet1.DataTable1;

void Save()
{
    bindingSource1.EndEdit();

    DataTable dtChanges = dataSet1.DataTable1.GetChanges();

    MessageBox.Show("Row Count=" + dtChanges.Rows.Count.ToString());
}
Avatar of nishant joshi
nishant joshi
Flag of India image

can you expalin more about what you want to get changes in binding source or in datatable?
ASKER CERTIFIED SOLUTION
Avatar of pointeman
pointeman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pointeman

ASKER

Yea! Works Perfectly!
I found an excellent link which solves the problem...