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.
精彩评论