dataview rowfilter question -

  • Thread starter Thread starter Tony C.
  • Start date Start date
T

Tony C.

I am populating a listview control. I hava applied a
rowfilter to a dataview and it works That is- it shows the count as
being correct. BUT, How do I get a the results? It supposedly hides
the ones I don't want but how can I get to them programmatically to
populate my listview - (by iteration on the dataview).
I want to show them in my listview - so I'm looping through them
but my iterations still return every row in the dataview.
How do I iterate on the unhidden rows?

thanks! Tony C.
 
HiI Tony,

I'm new to using ADO.NET, but is it possible to re-test your rowfilter
expression from within your loop and if the expression returns false, skip
back to the beginning of the loop and not increment any counter?

John
 
Hi Tony,

You should loop through DataView rows:
foreach (DataRowView drv in dv) // dv is an instance of DataView
 

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

Back
Top