A DataSet does not have a "main" DataTable. You would need to keep track of that in your custom code.
>How do you identify a MainTable DataTable object in a dataset?
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi