473,658 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="DataG ridFixedHeader" ></HeaderStyle>

Here is the style in the CSS for the fixed header
--> .DataGridFixedH eader
{
background-color: white;
position:relati ve;
top:expression( this.offsetPare nt.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 2147
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
7211
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 dynamic drop down menus. I have a couple of C programs that take GET requested data and displays matching results from a database query... For example... www.mydomain.com/cgi-bin/getTypes?code=6 might display
4
11170
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 number in the click event I get row = 1 if I click on the FIXED row OR the actual row 1. How can I get the grid control to tell me when the user has clicked on the FIXED row and not on row 1 (since they both produce row = 1 and I cannot tell them apart...
1
1249
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 downs in my URL via the query string and that value is not returned in the stored procedure that is loading the grid. So how can I get the selectedItem.value from the drop down and pass it in the querystring in my gridview link?
0
1148
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 propery- I press the button and it LOOKS Like something happens- but the datagrid does not populate. I am not really sure how to troubleshoot this part... I can successfully pull data from the table without sending something to the WHERE... (like a...
6
1598
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. When would I populate the drop list? Sean M. Severson
4
1615
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 the same as they were on the page the user is coming from. I'm using a master page and a sitemap file for my menu. example: If I'm in page 1 and I select BMW in dropdown 1 and 535 in drop down 2 if i select a new page on the menu, the drop...
0
972
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 than one standard header row in the grid.Now I want to always show these header rows in the grid when the user scrolls down the data.I can keep the standard header row fixed but not other rows of headers.Had anyone come across this problem? ...
0
995
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 SQL Express 2005 by dropping SQLDataSource, GridView and DetailsView components onto the page. So now I've got a webpage that can display and modify data in my database and add and delete rows. However this is all done with the components and I...
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8330
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.