Hi Everyone,
I'm learning about DataSets and would like to loop through a strongly typed DataSet created in the Visual Studio DataSet designer.
Can you show me the rest of the coding I need to add so I can extract the data from the column called "ClassName"?
Thanks.
I'm learning about DataSets and would like to loop through a strongly typed DataSet created in the Visual Studio DataSet designer.
Can you show me the rest of the coding I need to add so I can extract the data from the column called "ClassName"?
VB.NET:
[COLOR=#00008B]Dim[/COLOR] strClassName [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]String[/COLOR] = [COLOR=#800000]""
[/COLOR][COLOR=#00008B]Dim[/COLOR] objAadapter [COLOR=#00008B]As[/COLOR] [COLOR=#00008B]New[/COLOR] DataSetSchedulesTableAdapters.DataTableTableAdapterSchedules
[COLOR=#00008B]Dim[/COLOR] objDataTable [COLOR=#00008B]As[/COLOR] DataSetSchedulesTableAdapters.DataTableTableAdapterSchedules
<I need a way [COLOR=#00008B]to[/COLOR] fill the table [COLOR=#00008B]with[/COLOR] data from> = objAadapter.GetDataByAll(TextBoxSearch)
[COLOR=#00008B]
For[/COLOR] [COLOR=#00008B]Each[/COLOR] row [COLOR=#00008B]As[/COLOR] System.Data.DataRow [COLOR=#00008B]In[/COLOR] objDataTable
strClassName = row.ClassName
[COLOR=#00008B][FONT=Consolas]Next
[/FONT][/COLOR]
Thanks.