Groups | Blog | Home
all groups > dotnet datatools > march 2005 >

dotnet datatools : Moving throw records in a Dataview


brix_zx2
3/30/2005 7:37:07 AM
Still working with the same program (DB in VB.NET 2003). I've got the
DataView down (Thanks Mona), I also have the binding to the text boxes
figured. What I need now is how to move to the next record when clicking on
a command button.

I tried doing it the same way you would through a dataset, but that's not
brix_zx2
3/31/2005 5:33:02 AM
Mona, thanks for the tip, but my form isn't a datagrid. This is probably my
fault for not explaining enough. When the user opens the form they pick,
from a combo box, a checklist name. The form then opens up the database
(4000+ records) with just the records matching that checklist name. This
could be anywhere from 25 to 200 records. They update a few fields and then
will need to moving to the next record containing that Checklist name
criteria. How can I set up my command button to do this?

[quoted text, click to view]
mona
3/31/2005 4:48:44 PM
Hi Brix,

A DataView consists of DataRowView. You can loop through
each DataRowView in a DataView and access the items of the DataRowView.

You can refer tothe following link to learn more about this property:

[DataRowView.Item Property]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatarowviewclassitemtopic.asp

It has also has an example for a better understanding.

HTH

Mona


[quoted text, click to view]

AddThis Social Bookmark Button