Results 1 to 3 of 3

Thread: [RESOLVED] Gridview - always show whole page

  1. #1

    Thread Starter
    Fanatic Member snufse's Avatar
    Join Date
    Jul 2004
    Location
    Jupiter, FL
    Posts
    912

    Resolved [RESOLVED] Gridview - always show whole page

    Is there a way where I can set the GridView to always show the total page even when there are not enough records to fill the page? Example, my page size is 12 and if my binding results in 8 rows I want the GridView to be displayed with 12 rows (4 blank rows).

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Gridview - always show whole page

    Hey,

    Ok, I have to ask, why do you have this requirement? Does your GridView have an edit view that you are trying to enable?

    Normally, what you do would be to provide additional controls on your page, i.e. textbox input fields, that the user fills out, and then submits (via a button click) which causes new rows to be added.

    I guess it really comes down to how you are retrieving your data from the database. Can you provide some more information?

    Gary

  3. #3

    Thread Starter
    Fanatic Member snufse's Avatar
    Join Date
    Jul 2004
    Location
    Jupiter, FL
    Posts
    912

    Thumbs up Re: Gridview - always show whole page

    This is just for cosmetic purpose. I was able to add blanks rows at the end filling up the page by calculating rows from data base + blank rows = page size. I am all set. Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width