Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Namespace inside my project

Status
Not open for further replies.

2xhelix

IS-IT--Management
Jul 15, 2004
9
CA
Hi everyone
I made a project, and created a namespace

Namespace DataTools
Public Class DataViewer
...
...
...
...

One of my functions returns a data grid

Public Function getGrid()
...
...
Return MyDataGrid
End Function


On my aspx file

I have

Dim Dtview As New DataViewer(SortField, rptID)

ItemReportDG = Dtview.getGrid()

But the datagrid doesn't show up when I load the page. Did i do something seriously wrong?


thanks
 
I am not sure about returning a datagrid itself, I have always returned a dataset that I bind to the grid but I did notice that the function doesn't have a type set. But as I said... don't know about returning a grid.

Try

Public Function getGrid() As DataGrid
...
...
Return MyDataGrid
End Function



Hope everyone is having a great day!

Thanks - Jennifer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top