如何更改数据集具有数据的位置 [英] how to change the place where the dataset have data
问题描述
首先我有dataset1包含pic
http://imagenic.net/viewer.php?file=pkjnwmfzm641v8z5rhcg.png [ ^ ]
第二,该报告包括两列,如pic
http://imagenic.net/viewer.php?file=xnf2npi8q6qufmeq41.png [ ^ ]
但是当我运行项目时数据没有出现
所以我去看了ds中的数据
http://imagenic.net/viewer.php?file=vvama5jtb4kj29o6gsfu.png [ ^ ]
我发现ds将数据放入table1和table2
http://imagenic.net/viewer.php?file=1ajt9iwoo0u5fezif6.png [ ^ ]
http://imagenic.net/viewer.php?file=fispanmpcd74rdtlvp3v.png [ ^ ]
所以我需要知道如何将表1和表2更改为员工表
尝试此链接
http://stackoverflow.com/questions/2690814/c-sharp-sql-data-adapter-filling现有类型数据集
或
在表格中填充数据时,请使用诸如
的名称adapter.Fill(dt," );
hi
i have a project with crystal report and it work fine untill this problem
first i have dataset1 contain as is pic
http://imagenic.net/viewer.php?file=pkjnwmfzm641v8z5rhcg.png[^]
second the report include two column as in pic
http://imagenic.net/viewer.php?file=xnf2npi8q6qufmeq41.png[^]
but the data didn''t appear when i run the project
so i went to see data inside ds
http://imagenic.net/viewer.php?file=vvama5jtb4kj29o6gsfu.png[^]
and i find that ds is put the data in table1 and table2
http://imagenic.net/viewer.php?file=1ajt9iwoo0u5fezif6.png[^]
http://imagenic.net/viewer.php?file=fispanmpcd74rdtlvp3v.png[^]
so i need to know how to change table 1 and table 2 to be employee table
Try this link
http://stackoverflow.com/questions/2690814/c-sharp-sql-data-adapter-fill-on-existing-typed-dataset
or
while filling data in table give some name like
adapter.Fill(dt,"employee");
这篇关于如何更改数据集具有数据的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!