Windows Forms Data Controls and Databinding
Try something like this.
Dim ar(ds.Tables("Products").Rows.Count - 1) As DataRow
ds.Tables("Products").Rows.CopyTo(ar, 0)
Dim MyColumn(ds.Tables("Products").Rows.Count - 1) As String
MyColumn = Array.ConvertAll(ar, New Converter(Of DataRow, String)(AddressOf GetDataColumn))
End Sub
Public Shared Function GetDataColumn(ByVal dr As DataRow) As String
Return dr("ProductName").ToString
End Function
Note when Visual Studio 2008 is released later this year you will be able to get data like this with Linq
Dim MyColumn = (From c In db.Products Select c.ProductName).ToList