Datagrid - Row height on last page

P

Phil Johnson

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
 
P

Phil Johnson

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 said:
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 said:
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
 
E

Eliyahu Goldin

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 said:
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 said:
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 said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top