|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Row Filter VisibilityHi 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 <mfleet1***@yahoo.ca> schreef in bericht Show quoteHide quote news:1153136732.615509.124120@p79g2000cwp.googlegroups.com... > 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. >
Bug or Feature? CancelButton vs Escape Key
overides/loads usage Problems using Me.Scale in Framework 2.0 ListView and ImageList/ImageKey Public Structure An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Holding down a key HELP: Problem Hosting the "Simplest" of VB.NET Apps Sendmessage problem help! detect if running on a terminal server |
|||||||||||||||||||||||