469,140 Members | 1,313 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,140 developers. It's quick & easy.

Datagrid - Row height on last page

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
Mar 11 '08 #1
3 1363
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" <Ph*********@discussions.microsoft.comwrote in message
news:E8**********************************@microsof t.com...
>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

Mar 11 '08 #2
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" <Ph*********@discussions.microsoft.comwrote in message
news:E8**********************************@microsof t.com...
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


Mar 11 '08 #3
If you worry about the very last row, in some cases you can trick the user
by placing the grid inside a <divwith 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" <Ph*********@discussions.microsoft.comwrote in message
news:C6**********************************@microsof t.com...
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" <Ph*********@discussions.microsoft.comwrote in message
news:E8**********************************@microso ft.com...
>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



Mar 11 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by CVerma | last post: by
9 posts views Thread by tshad | last post: by
1 post views Thread by Sandy | last post: by
6 posts views Thread by slinky | last post: by
1 post views Thread by Brock | last post: by
1 post views Thread by Brock | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.