I have tried to implement the sample video example on databinding with the LLBLGenProDataSource2 using a gridview and a dropdownlist.
Basically the grid just will not filter on the selected dropdownlist value, although it does retrieve the EntityCollection correctly. This is an ASP.NET VS2005 web application project.
Am I missing something obvious here? Thanks
<asp:DropDownList AutoPostBack="true" ID="ddlAccount" runat="server" DataTextField="AccountId" DataValueField="AccountId">
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>3178</asp:ListItem>
<asp:ListItem>3179</asp:ListItem>
</asp:DropDownList>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="AccountId" DataSourceID="LLBLGenProDataSource2_1">
<Columns>
<asp:BoundField DataField="AccountId" HeaderText="AccountId" ReadOnly="True" SortExpression="AccountId" />
<asp:BoundField DataField="AccountCode" HeaderText="AccountCode" SortExpression="AccountCode" />
</Columns>
</asp:GridView>
<llblgenpro:LLBLGenProDataSource2 ID="LLBLGenProDataSource2_1" runat="server"
AdapterTypeName="DAL.DatabaseSpecific.DataAccessAdapter, DALDBSpecific"
DataContainerType="EntityCollection"
EntityFactoryTypeName="FactoryClasses.TblAccountEntityFactory, DAL">
<SelectParameters>
<asp:ControlParameter ControlID="ddlAccount" DefaultValue="6" Name="newparameter"
PropertyName="SelectedValue" />
</SelectParameters>
</llblgenpro:LLBLGenProDataSource2>