.net – 如何将多个数据视图合并为一个?

前端之家收集整理的这篇文章主要介绍了.net – 如何将多个数据视图合并为一个?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_502_1@我有三个数据视图(dataview1,dataview2和dataview3).它们是System.Data.DataView类型,并且所有三个都具有相同的列.有没有一种简单的方法将它们合并为一个,所以我有一个数据视图,其中包含来自dataview1的行,然后是dataview2,然后是dataview3?

解决方法

Dim dataview1 As DataView = new DataView()
Dim dataview2 As DataView = new DataView()

'' given the tables are not null you can then merge like this

dataview1.Table.Merge(dataview2.Table)
原文链接:https://www.f2er.com/aspnet/247354.html

猜你在找的asp.Net相关文章