We help IT Professionals succeed at work.

FormVew PagerSettings-Position Won't Work

rmk
rmk asked
on
Medium Priority
561 Views
Last Modified: 2008-03-03
No matter what I try my pager links appear at the top AND bottom of my form. Here's the code I'm using to specify them only at the top. Any suggestions?
 
   <asp:FormView ID="fvwProperty" runat="server"
                  DataKeyNames="PropertyID"
                  BorderStyle="Dashed"
                  AllowPaging="True"
                  PagerSettings-Mode="NumericFirstLast"  
                  PagerSettings-Position="Top"
                  OnPageIndexChanging="fvwProperty_PageIndexChanging"                
                  EmptyDataText="no properties found">
   etc


    private void BindPropertyFormView()
    {
        DataTable dtbl;
        long lngLogInID = this.LogInID;
        dtbl = CATSDAL.tblPropertySearchResult_SelectPageForLogInID(mintPageIndex, 1, ref mintHowManyPages, lngLogInID);
        this.fvwProperty.DataSource = dtbl;
        this.fvwProperty.DataBind();
        // bind the active view
        BindMultiView();
    }
Comment
Watch Question

rmk

Author

Commented:
I finally found the solution. i.e. you have to declare the pager settings outside of the FormView tag like this

   <asp:FormView ID="fvwProperty" runat="server"
                  DataKeyNames="PropertyID"
                  BorderStyle="Dashed"
                  AllowPaging="True"
                  PagerSettings-Mode="NumericFirstLast"  
                  OnPageIndexChanging="fvwProperty_PageIndexChanging"                
                  EmptyDataText="no properties found">

    <PagerSettings Position="Top">
Commented:
Closed, 250 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.