A
Antonio Budano
Hi there,
How can I iterate through collections starting not from the first item but
from an offset?
I need to check if a dataset contains records that have some field values
that can conflict with some other records. So my code would be like the
following:
MyDataSet copyDataSet = new MyDataSet();
copyDataSet = myDataSet.Copy();
foreach(DataRow row in myDataSet.MyTable.Rows)
foreach(DataRow copyRow in copyDataSet.MyTable.Rows)
Do the records validation
the problem with this approach is that I will do checks twice, I need to
start iterating the copyDataSet.MyTable.Rows not from the first row but from
the row of myDataSet.MyTable.Rows + 1.
How can I achieve this?
Thanks
Antonio
How can I iterate through collections starting not from the first item but
from an offset?
I need to check if a dataset contains records that have some field values
that can conflict with some other records. So my code would be like the
following:
MyDataSet copyDataSet = new MyDataSet();
copyDataSet = myDataSet.Copy();
foreach(DataRow row in myDataSet.MyTable.Rows)
foreach(DataRow copyRow in copyDataSet.MyTable.Rows)
Do the records validation
the problem with this approach is that I will do checks twice, I need to
start iterating the copyDataSet.MyTable.Rows not from the first row but from
the row of myDataSet.MyTable.Rows + 1.
How can I achieve this?
Thanks
Antonio