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

DataGrid display problem?

I am having a problem with the way my DataGrid displays when a column header is clicked on to sort the records (AllowSorting="True"). 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 border will not collapse.

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

So my question is why would the display of the header name change when clicked to sort?

<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.

Jul 21 '05 #1
1 1634
Hi Stanley,

Did you know that there are newsgroups
microsoft.public.dotnet.framework.aspnet
and
microsoft.public.dotnet.framework.aspnet.datagridc ontrol

Crossposting (one message to both newsgroups) will probably give you the
best result

I hope this helps?

Cor
Jul 21 '05 #2

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

Similar topics

0
by: lu | last post by:
I have a page with datagrid (for viewing, delete,edit,update) and text fields with button to add info to database. When user comes to page the datagrid selects info from database, binds in...
3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
2
by: Celine | last post by:
I am building a website using C#, asp.net and SqlServer. I need to store a lot of images in my database. I need to store thumbnails but also larger pictures(when user clicks thumbnails a larger...
1
by: Joe Bloggs | last post by:
I am trying display the contents of a table in a web page, select certain rows from that table and then display the fields that I have selected (now table columns) as text in a Label object....
3
by: Doug | last post by:
Hi I have the following code (not mine) that populates a datagrid with some file names. But I want to replace the datagrid with a combo box. private void OnCurrentDataCellChanged(object sender,...
12
by: Daniel Walzenbach | last post by:
Hi, I want to display a Label in a DataGrid according to some condition. I therefore check whether the condition is true in the ItemDateBound EventHandler of the DataGrid. Unfortunately the...
2
by: ringo | last post by:
I've come accross an interesting problem populating an asp.net datagrid. I am trying to bind XML data to a datagrid as I've done in countless other applications, the only difference this time being...
7
by: CanoeGuy | last post by:
I have been trying for the last two weeks to display a dynamic DataGrid. The data that I'm pulling from a SQL Server DB will have whole columns that will be either NULL or 0. I want to display...
6
by: Ron L | last post by:
I have a dataset whose source is a SQL 2k stored procedure that I am trying to display in a datagrid. This datasource has 4 columns that I am interested in here, a text column and 3 value columns...
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,...
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: 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
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
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,...
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,...

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.