So I have a form that has controls and binding sources, etc
in the same form code, I added a class:
It is in this class I am having an issue. I can not figure out how to get the data from the dataset. The dataset is called ftappdataset. I want to pull the data from the fcdt datatable in that dataset so I can iterate through its rows. Everything I try comes back with a row count of 0 when I know for sure it isnt 0. I know in the form class it works because there are binding sources and table adapters, etc, but I cant figure out how to do it in this separate class. Please help.
VB.NET:
Public Class frm_newflightcard
....
end class
in the same form code, I added a class:
VB.NET:
Public Class DropDownListHelper
Public Shared Function GetDropDownList(path As String) As List(Of String)
Dim result As New List(Of String)()
[B]???????[/B]
For Each row As DataRow In table.Rows
result.Add((row("name")).ToString())
Next
Return result
End Function
End Class
It is in this class I am having an issue. I can not figure out how to get the data from the dataset. The dataset is called ftappdataset. I want to pull the data from the fcdt datatable in that dataset so I can iterate through its rows. Everything I try comes back with a row count of 0 when I know for sure it isnt 0. I know in the form class it works because there are binding sources and table adapters, etc, but I cant figure out how to do it in this separate class. Please help.