I seem to be getting the same problem. I have a project with 13 tables. All pages work fine except the page associated with my Employees Table. [Col#1 PK(int), Col#2 FirstName(varchar), Col#3 LastName (varchar)]
Pretty sure this is not a Web.Config issue.
On adding a filter [LastName] I also am getting the InvalidOperationException.
"The filter control 'LastNameFilter' does not support this operation because it is associated with an unsupported column 'LastName'."
It makes no sense.
I have other pages that are the same template with similar table schema and they work just fine. Any ideas ?
------------------------------------------------------------------------------------------------------------------------------------------
<%@ Page Language="C#" MasterPageFile="~/Site.master" CodeBehind="ListDetails.aspx.cs" Inherits="DynamicData01.EmployeeListDetails" %>
<%@ Register src="~/DynamicData/Content/GridViewPager.ascx" tagname="GridViewPager" tagprefix="asp" %>
<%@ Register src="~/DynamicData/Content/FilterUserControl.ascx" tagname="DynamicFilter" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true" />
<%--<h2><%= GridDataSource.GetTable().DisplayName %></h2>--%>
<h4><span>Filter View:</span></h4>
<asp:ScriptManagerProxy runat="server" ID="ScriptManagerProxy1" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
HeaderText="List of validation errors" />
<asp:DynamicValidator runat="server" ID="GridViewValidator" ControlToValidate="GridView1" Display="None" />
<table>
<tr>
<td><asp:Label ID="lblFltrLastName" runat="server">LastName:</asp:Label></td>
<td>
<%-- LastName Selector--%>
<asp:DynamicFilter runat="server" ID="LastNameFilter" DataField="LastName"
OnSelectedIndexChanged="OnFilterSelectedIndexChanged" />
</td>
</tr>
</table>
.....
....
..