473,385 Members | 1,782 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,385 software developers and data experts.

Fixed Header on a Data Grid using CSS - problem with Drop downs

Hi Guys,
Hopefully some one will have come across this issue already. I have a
DataGrid inside a Div where a scroll bar displays once a certain height is
meet

--> <div id="dvSales" style="height: 230px; overflow: auto; width: 100%"
runat="server">

The Data Grid has AllowPaging is set to False and the HeaderStyle tag is set
for the DataGrid so that the header remains fixed when we scroll using the
scroll bar.

--> <HeaderStyle CssClass="DataGridFixedHeader"></HeaderStyle>

Here is the style in the CSS for the fixed header
--> .DataGridFixedHeader
{
background-color: white;
position:relative;
top:expression(this.offsetParent.scrollTop);
}

This works fine for my Data Grid but only when the Grid has no drop downs as
part of it. If there is drop downs as part of the data grid then they do not
become transparent when we use the scroll bar. I read somewhere that this
has to do with the fact that a drop down in HTML is given higher priority
than other HTML controls when rendering. Anybody have any ideas on how to
fix?
Nov 19 '05 #1
1 2121
This is one of IEs great blunders. I have struggled with this bug too
many times to count. The problem is that the DropDown in IE is a
windowed component and doesn't read the zindex assigned in the HTML.
If you notice it works fine in other browsers. One option would use
javascript and during scrolling hide all dropdowns within the div, then
do a hit count within your div to set the visibility flag based on
which are inside your clipped space. This looks good but is a
significant hit to the browser and is more javascript then most care to
write. You may want to try an IFrame, but then you have to deal with
the posting to different pages problem.

Endo

Nov 19 '05 #2

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

Similar topics

7
by: news.west.cox.net | last post by:
Forgive me, I am new to javascript ( about 1 week playing with it ). I am proficient in C, perl, python, java, etc... but no javascript. I wrote an applet about 1 million years ago that has...
4
by: Otie | last post by:
Hello, I am using the MSFlexGrd Control in VB5. I have 1 fixed row and one fixed column. I am trying to do a sort when the user clicks a column in the FIXED ROW. But when I capture the row...
1
by: CSharpguy | last post by:
Let me explain, I have 2 drop downs on my web form and they populate my gridview via a button and a stored procedure. I have 2 links in my GridView, I need to pass the value of one of the drop...
0
by: JAW1971 | last post by:
Hi I have two drop downs and abutton, the button is supposed to send one of the items from one of the dropdowns to a qry (access database) and populate the datagrid with the info. It is not working...
6
by: NerdRunner | last post by:
Hello group, I am using a data grid with template columns. I have a drop list in the header of the template column that will allow users to select a value for filtering of the data in the grid....
4
by: igotyourdotnet | last post by:
Is there a way to pass data from page to page without the use of a Session Variable or queryString? I need to pass drop down box selections from page to page and have the drop downs on the page be...
0
by: rawatgaurav81 | last post by:
Hi All, I had come across this problem in a web project I am doing.I am showing some data on a gridview and I had to construct additional rows of column headers dynamically i.e. I could have more...
0
by: wildlifecanada | last post by:
I'm fairly green to this web developer thing, especially when it come to data access, so forgive my ignorance. I've made a web page using Web Developer Express (2005). I've got it hooked up to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.