DataTable.ImportRow() not working? - Strongly typed datarows and tables the problem?

  • Thread starter Thread starter Uchiha Jax
  • Start date Start date
U

Uchiha Jax

I have used this method many a time in previous applications without any
hitches at all and i'm trying to use it in my current application and it
isn't working.
The only difference I can see is that I am using a strongly typed dataset
(and hence datatables and datarows), does that make this function not work?
I figured as my TaskRow inherited from DataRow that there shouldn't be a
problem.

The code, put simply is as follows:

/// Import into all tasks table for look up purposes
AllTasksTable.ImportRow(theTask.TheTaskRow); /// this is the call i'm trying
to get to work
TaskDataTable dt = new TaskDataTable(); /// here is a test to show that the
method has problems
dt.ImportRow(theTask.TheTaskRow);
int i = 0; /// I place the breakpoint here and query with the debugger.

//// The debugger tells me that AllTasksTable has 1 less row than expected
and that dt has no rows!!!!

Anyone the wiser?

Kind Regards

Jax
 
Back
Top