I used Codesmith to create my DAL for a module to be used in DNN 4.0.3 and everything is working fine. The module is basically a Gridview that is linked to a table in my DNN Database and it is working the way it supposed to. The problem I’m having is that I don’t know how to get the Gridview to display an additional field I added to my List procedure. As follows:
-- To simplify my code, I’m using a little different example
******The stored Procedure
Select
A.StudentID,
A.StudentName,
A.FacilityID,
‘FacilityName’ = B.FacilityName -- This is the additional I’m trying to add
From students A inner join Facilities B on A.FacilityID = B.FacilityID
*******I also modified my studentsInfo.vb file as follows:
Public Class StudentsInfo
#Region "Private Members"
Dim _studentID As Integer
Dim _studentName As String
Dim _facilityID As Integer
Dim _facilityName As String ‘ the new added field
.
.
.
Public ReadOnly Property FacilityName() As String
Get
Return _facilityName
End Get
End Property
*******Finally, I added a new column to my GridView that points to FacilityName but it always shows blank. What am I missing??