473,394 Members | 1,746 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.

DataGrid Header Display Problem

I am having a problem with the way my DataGrid displays when a column header is clicked on to sort records. When the column name is clicked, a white background appears behind the column name. Also, if the column name has two words, if they were displayed one on top of the other, they now are displayed on one line and the text will not wrap.

This behavior does not appear in Netscape or Mozilla or Opera, just IE.

The problem is killing me because my Header Text is white and when the background behind the text is white the header name is no longer visible. Also, because the text does not wrap, this behavior throws off the width of the table.

<table cellspacing="0" cellpadding="3" rules="all" bordercolor="#0066CC" border="1" id="MainGrid" style="border-color:#0066CC;border-width:1px;border-style:solid;font-family:Verdana;font-size:7pt;width:628px;border-collapse:collapse;">

<tr align="Center" style="color:White;background-color:#4C94DB;font-size:7pt;font-weight:bold;height:10px;">

<td><a href="javascript:__doPostBack('MainGrid$_ctl2$_ctl 0','')" style="color:White;">Type</a></td>
<td><a href="javascript:__doPostBack('MainGrid$_ctl2$_ctl 1','')" style="color:White;">ID</a></td>
<td><a href="javascript:__doPostBack('MainGrid$_ctl2$_ctl 2','')" style="color:White;">ItemId</a></td>
<td><a href="javascript:__doPostBack('MainGrid$_ctl2$_ctl 3','')" style="color:White;">Title</a></td>
<td><a href="javascript:__doPostBack('MainGrid$_ctl2$_ctl 4','')" style="color:White;">High Bidder</a></td>
<td><a href="javascript:__doPostBack('MainGrid$_ctl2$_ctl 5','')" style="color:White;">Price</a></td>
<td><a href="javascript:__doPostBack('MainGrid$_ctl2$_ctl 6','')" style="color:White;">Qty Sold</a></td>
<td><a href="javascript:__doPostBack('MainGrid$_ctl2$_ctl 7','')" style="color:White;">EndTime</a></td>

</tr>

I know this is a strange problem, but any help would be most graciously accepted.


Expand AllCollapse All
Nov 18 '05 #1
0 1176

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

Similar topics

6
by: Robert Schuldenfrei | last post by:
Dear NG, After being away from C# programming for a spell, I am trying my hand at what should be a simple task. I have been hitting my head against the wall this morning. I have a simple order...
2
by: kgs | last post by:
I get argument out of range exception when my datasource does not have any rows to display in datagrid. what should i do to display header only without any rows. Right now if there are no rows i...
1
by: Jay | last post by:
I'm wondering if anyone has even encountered a control or other scripting that will automatically rotate the rows of a datagrid... I am in the process of building an asp.net application that will...
1
by: Patrick | last post by:
I need to build a multi-lingual application with asp.net. I do not want to have a version of the application per language used. To achieve this, I have recorded in my database all the labels and...
6
by: coleenholley | last post by:
Hi All :-) I need to populate a table I created as a web form. Are there any links to show me how to do this? I CANNOT use a dtagrid for this, the table has to be laid out as follows: Header...
3
by: no | last post by:
Hi all, I have a dataset that contain 2 tables and a relationship between them (master detail). I bind this dataset to a form that include some textboxes that bind to the parent record, and a...
2
by: Santosh | last post by:
Dear all i want to bind data to datagrid header template i am wrtting follwing code it is displaying data with in item template not but it is display data in header template <asp:DataGrid...
5
by: rn5a | last post by:
In my application, I want to populate all the directories & files existing in a directory on the server in a DataGrid. To ensure that all the directories get listed first followed by all the files,...
2
by: arunkumaryespee | last post by:
Hii i have a problem in display a empty datagrid with header during page_load(). actually i use the datagrid for searching purpose. During the page load i want to display an empty grid with...
2
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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
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.