View Single Post
  #1 (permalink)  
Old September 9th, 2008, 07:57 AM
kmwilliams5 kmwilliams5 is offline
Registered User
 
Join Date: Sep 2008
Location: Gloucester, MA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataRowView Type Not Defined (CH 14)

When I try to complete the exercise for "Hooking into RowDataBound" in Chapter 14 (Beginning ASP.NET 3.5 - VB), I get an error that DataRowView is an undefined type. The intellisense doesn't list or recognize it either. Any ideas why? I am using VWD Express Edition.

        Select Case e.Row.RowType
            Case DataControlRowType.DataRow
                Dim myRowView As DataRowView = CType(e.Row.DataItem, DataRowView)
                If Not Convert.ToBoolean(myRowView("Authorized")) Then
                    e.Row.CssClass = "HighContrast"
End If