开发者

Datatable.Select convert to another datatable or overwrite the same one

开发者 https://www.devze.com 2023-03-27 16:31 出处:网络
I have this code: DataRow[] wingsBookingInterfaceRows =_uc090_WingsIntegrationDataSet.WingsBookingInterface.Select(\"WingsYDossierID =\" +refmDossierId);

I have this code:

DataRow[] wingsBookingInterfaceRows =_uc090_WingsIntegrationDataSet.WingsBookingInterface.Select("WingsYDossierID =" +refmDossierId);

I need the results of that to overwrite this datatable

_uc090_WingsIntegrationDataSet.WingsBookingInterface

because I need to iterate over the .Rows collectio开发者_开发百科n

thanks


Try this out:

DataTable table = new DataTable();            
DataTable newTable = table.Select("<SELECT QUERY>").CopyToDataTable();


you can iterate through the DataRow[] wingsBookingInterfaceRows already with a foreach.

0

精彩评论

暂无评论...
验证码 换一张
取 消