B
BoomBoom
I have a DataView (dvH) attached to a DataSet table to which I applied a
RowFilter. The filter yields three records from a total of 404. I am trying
to process these records using a foreach statement, but it insists on
processing the entire 404 recordset rather than the three.
This is the statement I tried using:
foreach (DataRow r in dvH.Table.Rows)
{
....
}
I also tried:
foreach (DataRow r in dvH)
{
....
}
The latter compiled but fails at runtime.
RowFilter. The filter yields three records from a total of 404. I am trying
to process these records using a foreach statement, but it insists on
processing the entire 404 recordset rather than the three.
This is the statement I tried using:
foreach (DataRow r in dvH.Table.Rows)
{
....
}
I also tried:
foreach (DataRow r in dvH)
{
....
}
The latter compiled but fails at runtime.