Datagrid with fewer records than page size is ugly

Discussion in 'ASP .Net' started by =?Utf-8?B?Q2hhcmxpZSBEaXNvbg==?=, Feb 29, 2004.

  1. I am using a datagrid bound to a Dataset. The problem is when the dataset has fewer records than the page size for the height, the cells grow automatically. Thus the datagrid with one record grows the cell heights between the one data row and the header row to match the whole datagrid height. Is there any easy way to fix the cell sizes to the same as if there were pagesize records, and the rest of the datagrid would be blank? In it's current state it's very ugly. Thanks in advaince.
    =?Utf-8?B?Q2hhcmxpZSBEaXNvbg==?=, Feb 29, 2004
    #1
    1. Advertising

  2. remove the height setting on the datagrid property pages. Then contract the
    datagrid as small as it can go. That will prevent it from stretching to fit.

    --
    Regards,
    Alvin Bruney [ASP.NET MVP]
    Got tidbits? Get it here...
    http://tinyurl.com/3he3b
    "Charlie Dison" <> wrote in message
    news:...
    > I am using a datagrid bound to a Dataset. The problem is when the dataset

    has fewer records than the page size for the height, the cells grow
    automatically. Thus the datagrid with one record grows the cell heights
    between the one data row and the header row to match the whole datagrid
    height. Is there any easy way to fix the cell sizes to the same as if
    there were pagesize records, and the rest of the datagrid would be blank? In
    it's current state it's very ugly. Thanks in advaince.
    Alvin Bruney [MVP], Feb 29, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luke Airig
    Replies:
    0
    Views:
    765
    Luke Airig
    Dec 31, 2003
  2. lazy

    string size greater than page size?

    lazy, Apr 27, 2007, in forum: C Programming
    Replies:
    3
    Views:
    345
    Army1987
    Apr 27, 2007
  3. J. Muenchbourg
    Replies:
    3
    Views:
    228
    Aaron Bertrand - MVP
    Sep 30, 2003
  4. Dan

    Delete records or update records

    Dan, May 10, 2004, in forum: ASP General
    Replies:
    1
    Views:
    447
    Ray at
    May 10, 2004
  5. Kelly Dwight Felkins
    Replies:
    6
    Views:
    115
    Jeremy Henty
    Feb 9, 2006
Loading...

Share This Page