Lee, I played around with it for a long time and got everything to work, until I restarted my project... I keep getting this error (and it happened before I got it work as well. I just don't remember what I changed):
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'CategoryName'
When I get to this line:
Code:
<asp:Literal ID="Literal1" runat="server" Text='<%# Eval("CategoryName") %>'/>
"CategoryName" is the field in my [Categories] table that holds the description of the category. I have Categories.CategoryName pulling correctly from my SelectStatement, so it seems odd that the Eval statement can't find it.
The site runs fine when I replace the Eval statement with ActivityCategoryID from my [Activities] table, but the GridView just shows the ID and not the name.
Any ideas?