473,394 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Gridview Row Height in Opera

Hi,

I have a gridview and I need it to display correctly in Opera.

I need to set the row height, so that even on the last page of data all the
rows are the same height as on the other pages.

In IE and firefox, setting a height in the rowstyle of the gridview and not
setting any height on the grid works really well... exactly what I need.

In Opera though, the row heights don't get set and the header row displays
with the same height as all the rows put together, pushing the rows down.

The only way I can get the grid to display at the correct size in Opera is
to leave the height off the row and set a height on the grid, which is fine
for everything except the last page, where the rows expand in height to fill
the grid!!!

Does anybody have any ideas on how I can resolve this issue in Opera?

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
Mar 18 '08 #1
2 2373
Hi Phil,

Try to set the Height in the RowStyle as well as HeaderStyle and also
alternatingRowStyle and it would work fine. I tried in the 8.5 version of the
Opera browser and it shows up fine.

Regards,
Manish
www.ComponentOne.com

"Phil Johnson" wrote:
Hi,

I have a gridview and I need it to display correctly in Opera.

I need to set the row height, so that even on the last page of data all the
rows are the same height as on the other pages.

In IE and firefox, setting a height in the rowstyle of the gridview and not
setting any height on the grid works really well... exactly what I need.

In Opera though, the row heights don't get set and the header row displays
with the same height as all the rows put together, pushing the rows down.

The only way I can get the grid to display at the correct size in Opera is
to leave the height off the row and set a height on the grid, which is fine
for everything except the last page, where the rows expand in height to fill
the grid!!!

Does anybody have any ideas on how I can resolve this issue in Opera?

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
Mar 19 '08 #2
Thanks for the response Manish... I tried your suggestion and it's still just
displaying the rows in Opera at their minimum height (i.e. as it would in IE
without a grid height or row height set).

It could well be inheriting a style from a containing control or
something... bit of a pain... I was hoping it would display the same in
Firefox so I could narrow down the issue with firebug, but firefox is
behaving like IE.

I have resolved it with a hack and put a 1 pixcel gif spacer image in a
template column, setting the height on the spacer to 18px and the width to
1px.

Its working fine now, but its going to be a nightmare for other people to
work on it and try to change the row height.

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
"Manish" wrote:
Hi Phil,

Try to set the Height in the RowStyle as well as HeaderStyle and also
alternatingRowStyle and it would work fine. I tried in the 8.5 version of the
Opera browser and it shows up fine.

Regards,
Manish
www.ComponentOne.com

"Phil Johnson" wrote:
Hi,

I have a gridview and I need it to display correctly in Opera.

I need to set the row height, so that even on the last page of data all the
rows are the same height as on the other pages.

In IE and firefox, setting a height in the rowstyle of the gridview and not
setting any height on the grid works really well... exactly what I need.

In Opera though, the row heights don't get set and the header row displays
with the same height as all the rows put together, pushing the rows down.

The only way I can get the grid to display at the correct size in Opera is
to leave the height off the row and set a height on the grid, which is fine
for everything except the last page, where the rows expand in height to fill
the grid!!!

Does anybody have any ideas on how I can resolve this issue in Opera?

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
Mar 19 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: delerious | last post by:
I need to determine an element's width and height in pixels (not including padding, border, and margin) in Javascript. The element will not have width or height styles specified. In Mozilla, I...
1
by: Mike P | last post by:
When you use a SqlDataSource to hook up data to a GridView it seems to be to be very inflexible. For example, I want to create my own Delete button with my own code and I also want to create a...
0
by: Mike P | last post by:
Where exactly are the updateparameters of a gridview picked up from? I have created 2 very similar gridviews and given the updateparameters the same names as in my edititemtemplates. Yet this...
0
by: Mike P | last post by:
I am trying to edit a gridview while using paging, but whenever I try to edit a row on a page other than page 1, I get an error. Here is my gridview and my code : <asp:GridView ID="GridView1"...
1
by: Jeff | last post by:
ASP.NET 2.0 I've got problems with the right column in my GridView. The GridView consist of 2 columns, the problem column is the column on the right side. The problem is that it looks like...
4
by: =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= | last post by:
I setup a simple gridview as a utility just to do some updates, nothing fancy just wanted easy UI to make updates. When I select ‘Edit’, I get the fields I want to edit. I edit them and click...
3
by: Jimmy B | last post by:
Hello folks, Does anyone of you know any Open Source GridView Extension that has vertical Scrollbar and fixed Header? Tried to Google but didn't find any proper (because of Css). It should...
2
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, I have a gridview with paging enabled. I need to know how many rows of data are on the last page!!! When I look at the Gridview1.Rows.Count in the Page_Load, it always returns the...
0
KalariaNitya
by: KalariaNitya | last post by:
Hello, could anybody help me? i have gridview, inside gridview i have one Update button & textbox update button update the quantity entered in textbox. i want to update the quantity on textbox on...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.