472,364 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,364 software developers and data experts.

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 1430
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Gilles T. | last post by:
How I can get element ID in the edit mode of datagrid control? If I not in the edit mode, there are no problem. <asp:TemplateColumn ItemStyle-CssClass="grid_column_width_3"...
3
by: Richard | last post by:
I have a requirement to put a GDI style circle or rectangle border around the selected row of a datagrid/ It will overlap into the row above and below the selected row. Doing this in a the OnPaint...
3
by: CVerma | last post by:
Hi, I have an embedded datagrid within a datalist. I am not able to perfrom paging in the datagrid. Any ideas? Here is my code: Here is my Simplegrid.cs file: using System; using...
9
by: tshad | last post by:
How do I find (and set) a couple of labels in the Footer after a DataGrid is filled? I have a bunch of DataGrids that get displayed nested inside a DataList. The datagrid looks like: ...
1
by: Sandy | last post by:
Hello - I have a datagrid with scrollbars and paging. I have tried setting the row height of the header, pager, footer and Itemstyle. Everything functions great until I hit the last page when...
2
by: Mike Baugh | last post by:
I am using visual studio 2005 to develop a form using c# I have 3 datagrids on one form. I can set the row color based on a certain value in a column. However this color applies to all 3...
6
by: slinky | last post by:
I found the following code to transfer datagrid data to an Excel file. Is this written in C#?... I'm a vb.netter. I'm just not sure where to place the code to experiment on it. Should I place it in...
1
by: Brock | last post by:
First note that I am using Framework 1.1. I have an .aspx page that is displaying a list of employees, but only the Employee Number, First Name, Last Name, and Title. It is working great. I...
1
by: Brock | last post by:
Thanks in advance... (you can see a screenshot of what my form looks like currently at http://www.juggernautical.com/DataGrid.jpg - the Datalist is super-imposed in 'design view' but the DataGrid...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.