TableSinlgeVB - sindizzy/DSW GitHub Wiki

Sample code that demonstrates how to get the value of a single cell in an attribute table.

Imports DotSpatial.Data
Imports System.Windows.Forms

Private Sub button1_Click(sender As Object, e As EventArgs)
	Dim fs As New FeatureSet()
	fs.FillAttributes()
	fs.Open("C:\Temp\roads.shp")
	Dim dt As DataTable = fs.DataTable
	For row As Integer = 0 To dt.Rows.Count - 1
		Dim val As Object = dtOriginal.Rows(row)("LENGTH")
	Next
End Sub