Row Filter Visibility

  • Thread starter Thread starter mfleet1973
  • Start date Start date
M

mfleet1973

Hi Gang.

I have set up a row filter on my dataview. I now want to loop through
the records of this dataview. However, even though the datagrid shows
the correct amount of rows, the dataview still has all rows in the
table. How can I set up the loop to only process the visible rows? My
code is as follows:

For iRowCnt = 0 To DataView1.Table.Rows.Count
....
Next

Many Thanks.

Mike.
 
Mike,

You are using the (Data)Table from the dataview instead of the dataview

For each drv as datarowview in DataView1
drv(index) ....................
Next

I hope this helps,

Cor
 
Back
Top