E10 C# Tableset.Table.Rows.Count not defined

Hello,

I am debugging some code in a method directive that is causing me to bang my head against the wall?

I am working with an Erp.Tablesets.OrderAllocTableset dataset.
I’ve haven’t confirmed but I would expect that OrderAllocTableset is dervived from DataSet.

When testing my method calls in the BL Tester, I can see that a row is returned in OrderAllocDataSet.OrderAlloc.
In my code though, the following LINQ statement seems to indicate that there are no rows in Orderalloc:
from OrderAlloc_Row in OrderAllocDataSet.OrderAlloc select OrderAlloc_Row

Specifical, this foreach loop never triggers the code in the loop.
foreach (var OrderAlloc_iterator in (from OrderAlloc_Row in OrderAllocDataSet.OrderAlloc select OrderAlloc_Row))

This was confusing to me so I thought I would throw a messagebox showing the row count but when I tried this:
OrderAllocListDataSet.OrderAllocList.Rows.Count.ToString()
I got a compile error that said Rows was not defined in OrderAlloc.

I then tried casting it to a DataTable with:
(DataTable)(OrderAllocDataSet.OrderAlloc)).Rows.Count.ToString()
I got a compile error that said I could not do this cast.

I must be missing something.

Any ideas?






Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 179 Campanelli Pkwy | Stoughton | MA | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:27994d.png@091922d4.43880459]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.




[Non-text portions of this message have been removed]