Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Table Adapter

$
0
0

Hi Friends,

On my Table Adapter Class I have a Function Method that takes a table and a Parameter. For some reason I don't see my parameter in the intellesense. or I have a red squiggly line under it that says parameter is not declared.  Thanks !

  Private Sub MySub(ByVal state As String)
        Me.ReportViewer1.LocalReport.DataSources.Clear()
        Dim myDS As New DataSet
        Dim adapter As New DataSetTableAdapters.EmployeesTableAdapter
        Dim table As New DataSet.EmployeesDataTable

        adapter.FillByRegion(table, param)
        'Dim myRDS As New _
        'ReportDataSource("DataSet1", myDS.Tables("tbl_Employee"))

        Me.ReportViewer1.LocalReport.DataSources.Add(New ReportDataSource("DataSet1", CType(table, DataTable)))
        Me.ReportViewer1.DataBind()



    End Sub


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>