DataTable parent row is null

M

Mike

How do I get the parent rows populated in the following scenario..

VirtualManagerTableAdapters.ShiftDataTableAdapter ta = new
VirtualManagerTableAdapters.ShiftDataTableAdapter();
foreach (VirtualManager.ShiftDataRow row in ta.GetData().Rows)
{
total += row.StaffRow.Wage;
}

StaffRow is always null, which is a parent row of ShiftDataRow. Should
this get populated for me, or am I missing something...

- TIA
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top