469,332 Members | 6,650 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

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

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

Nov 16 '05 #1
0 5578

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Chris Ericoli | last post: by
6 posts views Thread by Pete Wittig | last post: by
9 posts views Thread by Anil Gupte | last post: by
reply views Thread by tshad | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.