iterating thru dataview

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

so far the following is the only way i know how to iterate thru my
TypedDataSet.Table.DefaultView:

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
Next
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?

thanks,
rodchar
 
Rodchar,

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,

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

Back
Top