By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,475 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

iterating thru dataview

P: n/a
hey all,

so far the following is the only way i know how to iterate thru my

Private Sub FixDs()
For Each row As System.Data.DataRowView In svDs.HRFV0025.DefaultView
If Not IsDBNull(row("OAST")) Then
If row("OAST") = 4 Then
row("CHKBOX") = False
End If
End If
End Sub

However, as you can see i can take advantage of the TypedRows. Any ideas, or
is this all i got to work with?

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

If you really want it, written in this message so watch typos or whatever

For Each row As System.Data.DataRowView In svDs.HRFV0025.DefaultView
dim drvr as svDS.HRFV0025Row = DirectCast(drv.Row, svDSHRFV0025Row)
if Not drvr.OAST Is Nothing then
if etc etc.

I hope this helps,

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.