J
JD
I need to obtain an mean value of Width column in a Dataview. I can walk
through the Dataview (see below).
How do I extract the values from Width column in the Dataview so they can be
added together?
Would it be better to use a datatable? If so same question.
Dim dt As DataTable = ds.Tables("tblWidths")
Dim dvWidths As New DataView(dt)
dvWidths.RowFilter = "FishSurveyID = " + Me.FishSurveyIDWidths.Text + ""
Dim x As Integer = 0
For Each drv2 As System.Data.DataRowView In dvWidths
x += 1
Next
through the Dataview (see below).
How do I extract the values from Width column in the Dataview so they can be
added together?
Would it be better to use a datatable? If so same question.
Dim dt As DataTable = ds.Tables("tblWidths")
Dim dvWidths As New DataView(dt)
dvWidths.RowFilter = "FishSurveyID = " + Me.FishSurveyIDWidths.Text + ""
Dim x As Integer = 0
For Each drv2 As System.Data.DataRowView In dvWidths
x += 1
Next