Jeff,
>I am trying to step through a Business Object's Data Table. I have been trying to use the Entity.SetDataRow() method, but it isn't changing the data for the entity.
>
>I'm using
> oInvoice.Entity.SetDataRow(oInvoice.DataSet.Tables[0].Rows[InvoiceRow]);
>
>After this line executes, the Entity is not changing (checking oInvoice.Entity.BalanceDue and comparing the fields of the Rows[] they are different). I can't use a foreach in this instance.
>
>I'm sure I'm doing something wrong (not the first time - ask Kevin). I'm open to suggestions on how I should be moving through the data.
What is the value of InvoiceRow? To debug what's going on, you can go the circuitous route and set the business object's DataRow property and see if that makes a difference.
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com