PC Review


Reply
Thread Tools Rate Thread

Datagrid - Row height on last page

 
 
Phil Johnson
Guest
Posts: n/a
 
      11th Mar 2008
I have data that spans over several pages in a datagrid.

On the last page, the row heights seem to justify vertically, so if there
are say 14 records and the paging is ten, each row on the last page will take
up a quarter of the grid height.

Is there any way so that the row height will always be the same regardless
of the height of the grid or the number of rows being displayed?

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      11th Mar 2008
If you don't set the grid's height, it will keep the same height for all
rows.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Phil Johnson" <(E-Mail Removed)> wrote in message
news:E825B306-1A16-414E-AD4D-(E-Mail Removed)...
>I have data that spans over several pages in a datagrid.
>
> On the last page, the row heights seem to justify vertically, so if there
> are say 14 records and the paging is ten, each row on the last page will
> take
> up a quarter of the grid height.
>
> Is there any way so that the row height will always be the same regardless
> of the height of the grid or the number of rows being displayed?
>
> --
> Regards,
>
> Phillip Johnson (MCSD For .NET)
> PJ Software Development
> www.pjsoftwaredevelopment.com



 
Reply With Quote
 
Phil Johnson
Guest
Posts: n/a
 
      11th Mar 2008
Thanks for that Eliyahu,

I will try setting the row height and removing the grid height then.
--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com


"Eliyahu Goldin" wrote:

> If you don't set the grid's height, it will keep the same height for all
> rows.
>
> --
> Eliyahu Goldin,
> Software Developer
> Microsoft MVP [ASP.NET]
> http://msmvps.com/blogs/egoldin
> http://usableasp.net
>
>
> "Phil Johnson" <(E-Mail Removed)> wrote in message
> news:E825B306-1A16-414E-AD4D-(E-Mail Removed)...
> >I have data that spans over several pages in a datagrid.
> >
> > On the last page, the row heights seem to justify vertically, so if there
> > are say 14 records and the paging is ten, each row on the last page will
> > take
> > up a quarter of the grid height.
> >
> > Is there any way so that the row height will always be the same regardless
> > of the height of the grid or the number of rows being displayed?
> >
> > --
> > Regards,
> >
> > Phillip Johnson (MCSD For .NET)
> > PJ Software Development
> > www.pjsoftwaredevelopment.com

>
>
>

 
Reply With Quote
 
Eliyahu Goldin
Guest
Posts: n/a
 
      11th Mar 2008
If you worry about the very last row, in some cases you can trick the user
by placing the grid inside a <div> with the same background color. The user
will perceive it as a single grid and you don't need to worry about the last
row height.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Phil Johnson" <(E-Mail Removed)> wrote in message
news:C6807314-4E5A-404C-9328-(E-Mail Removed)...
> Thanks for that Eliyahu,
>
> I will try setting the row height and removing the grid height then.
> --
> Regards,
>
> Phillip Johnson (MCSD For .NET)
> PJ Software Development
> www.pjsoftwaredevelopment.com
>
>
> "Eliyahu Goldin" wrote:
>
>> If you don't set the grid's height, it will keep the same height for all
>> rows.
>>
>> --
>> Eliyahu Goldin,
>> Software Developer
>> Microsoft MVP [ASP.NET]
>> http://msmvps.com/blogs/egoldin
>> http://usableasp.net
>>
>>
>> "Phil Johnson" <(E-Mail Removed)> wrote in message
>> news:E825B306-1A16-414E-AD4D-(E-Mail Removed)...
>> >I have data that spans over several pages in a datagrid.
>> >
>> > On the last page, the row heights seem to justify vertically, so if
>> > there
>> > are say 14 records and the paging is ten, each row on the last page
>> > will
>> > take
>> > up a quarter of the grid height.
>> >
>> > Is there any way so that the row height will always be the same
>> > regardless
>> > of the height of the grid or the number of rows being displayed?
>> >
>> > --
>> > Regards,
>> >
>> > Phillip Johnson (MCSD For .NET)
>> > PJ Software Development
>> > www.pjsoftwaredevelopment.com

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Datagrid Row Height hoffman.adam@gmail.com Microsoft VB .NET 0 5th Sep 2006 10:37 PM
Row height in datagrid =?Utf-8?B?UGhpbGlwIEdlcm1hbm9z?= Microsoft ADO .NET 1 18th Jun 2005 12:01 AM
Row height in datagrid =?Utf-8?B?U2FuZHk=?= Microsoft ASP .NET 1 17th Apr 2005 10:59 AM
Row height in a datagrid Geoff Jones Microsoft VB .NET 2 9th Jan 2005 12:32 PM
Fix Row height in a Datagrid Thomas Microsoft Dot NET Compact Framework 2 9th Jul 2004 05:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:07 AM.