开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜