开发者

Save datarow after doing a select?

开发者 https://www.devze.com 2023-03-27 21:28 出处:网络
I have this piece of code. Lets say the original datatable has 4 rows, but after the select the datarows collection has 2 rows.

I have this piece of code.

Lets say the original datatable has 4 rows, but after the select the datarows collection has 2 rows.

I need to be able to set a property in the original datatable.

_uc090_WingsIntegrationDataSet.WingsBookingInterf开发者_如何学Cace[x].property = x

The problem here is how to know which row index to use?

DataTable tempTable = _uc090_WingsIntegrationDataSet.WingsBookingInterface.Clone();

DataRow[] datarows = _uc090_WingsIntegrationDataSet.WingsBookingInterface.Select("REFMDossierID = " + refmDossierId);


if you iterate in the datarows array and check properties of the DataRow object, I believe there is a RowIndex property.

0

精彩评论

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