S
Shahriar
I am using the following statement to filter a dataset.
ds.Tables(0).DefaultView.RowFilter = "ID='" & currentpos & " '
It seems to run fine. My question is since I have a filter set, why is the
following loop still goes through every record.
How can I achieve a real filter on a dataset? I dont want to create a
dataview.
For i = 0 To ds.Tables(0).Rows.Count - 1
MsgBox(ds.Tables(0).Rows(i)("casenumber"))
Next
Many thanks
ds.Tables(0).DefaultView.RowFilter = "ID='" & currentpos & " '
It seems to run fine. My question is since I have a filter set, why is the
following loop still goes through every record.
How can I achieve a real filter on a dataset? I dont want to create a
dataview.
For i = 0 To ds.Tables(0).Rows.Count - 1
MsgBox(ds.Tables(0).Rows(i)("casenumber"))
Next
Many thanks