| Platform: | Visual Basic |
| Task: | Create a DataView and set a DataGridView's Datasource to it |
| Discussion: | Create a DataView and set a DataGridView's Datasource to it |
| Example: | 'get a dataview of all the caribou's points
Dim dv As New DataView
dv.Table = ARCN_CaribouDataSet.CaribouLocationsPTT
dv.RowFilter = "CaribouID = 1"
'loop through the points and map them
For Each MyRow As DataRowView In dv
Dim Lat As Decimal = MyRow.Item("Lat")
Dim Lon As Decimal = MyRow.Item("Lon")
Next |