Hi, I am using EntityDataSource control to display Data in Grid, I want to use the same EntityDataSource to display all data as well as per the search, the problem is I can do only one thing either can use it to search or to get whole data
here is my .aspx page
<asp:EntityDataSource ID="InvestorsSource" runat="server" 
    ConnectionString="name=Entities" 
    DefaultContainerName="Entities" EnableFlattening="False" 
    EntitySetName="Investors" EntityTypeFilter="Investor"  
    Select="it.[InvestorId], it.[InvestorName], it.[Summary], it.[Logo], it.[EmailAddress], it.[PhoneNumber], it.[Website]" 
    AutoGenerateWhereClause="True" OrderBy="it.[InvestorName]">
    <WhereParameters>
        <asp:FormParameter FormField="txtSearchInvestor" Name="investorName" Type="String" />
    </WhereParameters>
</asp:EntityDataSource>
<asp:TextBox ID="txtSearchInvestor" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Go" onclick="Button1_Click" />
<p>
    <asp:GridView ID="gvInvestors" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" 
        DataSourceID="InvestorsSource">
        <Columns>
            <asp:BoundField DataField="InvestorId" HeaderText="InvestorId" ReadOnly="True" 
                SortExpression="InvestorId" />
            <asp:BoundField DataField="InvestorName" HeaderText="InvestorName" 
                SortExpression="InvestorName" ReadOnly="True" />
            <asp:BoundField DataField="Summary" HeaderText="Summary" 
                SortExpression="Summary" ReadOnly="True" />
            <asp:BoundField DataField="EmailAddress" HeaderText="EmailAddress" 
                SortExpression="EmailAddress" ReadOnly="True" />
            <asp:BoundField DataField="PhoneNumber" HeaderText="PhoneNumber" 
                SortExpression="PhoneNumber" ReadOnly="True" />
            <asp:BoundField DataField="Website" HeaderText="Website" 
                SortExpression="Website" ReadOnly="True" />
        </Columns>
    </asp:GridView>
</p>
Thanks