Row Filter Visibility

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.
 
C

Cor Ligthert [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top