Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Gridview Row Height in Opera

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phil Johnson - 18 Mar 2008 21:35 GMT
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?

Signature

Regards,

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

Manish - 19 Mar 2008 06:24 GMT
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

> Hi,
>
[quoted text clipped - 15 lines]
>
> Does anybody have any ideas on how I can resolve this issue in Opera?
Phil Johnson - 19 Mar 2008 10:19 GMT
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.

Signature

Regards,

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

> Hi Phil,
>
[quoted text clipped - 25 lines]
> >
> > Does anybody have any ideas on how I can resolve this issue in Opera?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.