本文介绍了使用DataTable问题填充DataSet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 你好, 我是.net的新手,我正在尝试建立一个报告应用程序, 根据id查询4个不同的表,并且我需要将它们放在 相同的桌子上以便于查看。 基本上,我有一个查询可以抓取我需要的所有ID对于 其他4个查询,但我不知道如何将它们放入DataTable或 DataSet,或者如果这是最好的方法。单独查询 所有工作都没有问题。 4个报告查询对字段进行计数并返回结果 $ b其他标准为$ b,其中一个是首次收集的ID。 现在我让它工作,他们可以选择要查看的ID,并且 然后我将它传递给4个查询,这些查询都相应地将结果返回到他们的 自己的数据网格中。我的问题是这可以在我可以的地方完成 有一个表根据id显示所有结果。 提前谢谢, KevynHello,I am new to .net and am trying to build a report application thatqueries 4 different tables based on a id, and I need to return them inthe same table for easy viewing.Basically, I have one querie that grabs all of the id''s I need for theother 4 queries, but I am not sure how to get them into a DataTable orDataSet, or if that is the best way to do this. Seperately the queriesall work with no problems.The 4 reporting queries do a count on a field and return a result basedon other criteria, one of which is the id which is first gathered.Right now I have it working where they can select the ID to view, andthen I pass it to the 4 queries which all return the results in theirown datagrid accordingly. My question is can this be done where I canhave one table which shows all the results based on the id.Thanks in advance,Kevyn推荐答案 这篇关于使用DataTable问题填充DataSet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!