dataview filter & for-loop

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

I got a large dataview and want to filter some data
and use the for-loop to list the data, however, it seems myThought is wrong.
All the data is list.

dvHBL.RowFilter = "jobno='" & strJobno & "' "
For Each drHBL In dvHBL.Table.Rows
tnjob.Nodes.Add(drHBL.Item("jobno") <-- all data is list
regardless the rowfilter
Next
 
For Each r As DataRowView In dvHBL
tnjob.Nodes.Add(r.Item("jobno").ToString)
Next

untested
 
Hi Agnes,
dvHBL.RowFilter = "jobno='" & strJobno & "' "
For Each drHBL In dvHBL.Table.Rows
tnjob.Nodes.Add(drHBL.Item("jobno") <-- all data is list
regardless the rowfilter
Next

Here you say only that you have to take the table from the dataview to go
through.As solution I have nothing to add to the answer from Greg.

Cor
 
Back
Top