开发者

Save datarow after doing a select?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜