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

Gridview Sort Header

Hello All, I just added sorting to my gridview and it messed up my headers.
I do not want the test to display as blue and I can not seem to figure out
what I need to do to get it back to my normal formatting. Here is what I
current have the style set to, can any one help me get it back to my
original style before I added sorting?

TIA

..GridViewHeader

{

text-align: left;

font-weight: bold;

color: #ffffff;

background-color: black;

text-decoration: none;

}
Jul 19 '07 #1
2 4545
On 20 , 00:26, "MikeB" <m...@nospam.comwrote:
Hello All, I just added sorting to my gridview and it messed up my headers.
I do not want the test to display as blue and I can not seem to figure out
what I need to do to get it back to my normal formatting. Here is what I
current have the style set to, can any one help me get it back to my
original style before I added sorting?
This occurs because plain text in header cells was changed to link. If
you want use sorting and leave old appearance then define specific
styles for links.
Add this:
..GridViewHeader a, .GridViewHeader a:link, .GridViewHeader
a:active, .GridViewHeader a:visited, .GridViewHeader a:hover
{
font-weight: bold;
color: #ffffff;
text-decoration: none;
}

Regards,
Mykola

Jul 20 '07 #2
Thank you.

"marss" <ma******@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
On 20 , 00:26, "MikeB" <m...@nospam.comwrote:
>Hello All, I just added sorting to my gridview and it messed up my
headers.
I do not want the test to display as blue and I can not seem to figure
out
what I need to do to get it back to my normal formatting. Here is what I
current have the style set to, can any one help me get it back to my
original style before I added sorting?

This occurs because plain text in header cells was changed to link. If
you want use sorting and leave old appearance then define specific
styles for links.
Add this:
.GridViewHeader a, .GridViewHeader a:link, .GridViewHeader
a:active, .GridViewHeader a:visited, .GridViewHeader a:hover
{
font-weight: bold;
color: #ffffff;
text-decoration: none;
}

Regards,
Mykola

Jul 20 '07 #3

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

Similar topics

1
by: sloan | last post by:
Ok, I've gotten somewhat handy with the new GridView. And I have it bound to a business object datasource, via the ObjectDataSource. Lets say I have 3 databound columns EmpID,...
2
by: Flinky Wisty Pomm | last post by:
Hi all, I've got a really annoying problem that I need to fix sharpish. I've got a GridView derived control which has a templated header and footer. It works wonderfully on the first render but...
0
by: Rolf Barbakken | last post by:
I have a most annoying problem: I have a gridview with users from AD. When the user clicks on the header row a postback is triggered, and the _Sorting-event fires. This is fine, and my...
1
by: Smokey Grindle | last post by:
does anyone know of a good example of asp.net 2.0's gridview showing a sort order arrow in the column header correctly and working? I cant seem to get what ive found on google to work (see previous...
0
by: CSharpguy | last post by:
I'm using a master page in my web app. On my content pages I have the gridview and I need to able to sort the grid. I can sort the grid fine if its not in a master page, but when I put it in a...
0
by: ccshine | last post by:
I have a Gridview populated with a DataTable that I store in the Session. I'm trying to sort the columns, but have only been able to get it to partially work. When I click on a header the first...
2
by: =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?= | last post by:
I am building a GridView dynamically adding templatFields according to a Microsoft article. I had to create a class with the ITemplate interface and a method called InstantiateIn. Everything works...
0
by: ER | last post by:
Hi Guys Started having a play with WPF and need some direction with a grid. I am trying to build a list of products in a grid view with combox boxes as column headers that allow filtering and...
4
by: tirath | last post by:
hi, I want to display data in on my web page, in gridview in this format: Group A Group B A1 A2 B1 B2 Test 1 1 2 1 2 Test 2 1 2 1 2 Group A is header to columns A1 and A2...
2
by: gnewsgroup | last post by:
I have a GridView, in which the header of one column changes depending on the selected value of a DropDownList outside of this GridView. I did this dynamic header through protected void...
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
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:
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.