Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to apply different css property to only 3rd "header" i.e (th) in a grid view

How can i do this??
Posted

1 solution

Make a class in your stylesheet for Th

e.g in CSS file

th.colored{//set properties}

Now while making the header in the gridview apply this class.
 
Share this answer
 
Comments
NiteshPanj 21-Aug-14 2:54am    
i want to do this using nth-child
Sharmanuj 21-Aug-14 2:59am    
you can apply the css to any level of the child. Clear me one thing, are you having page design at runtime or statically design.
Thanks7872 21-Aug-14 3:00am    
So? Do it. Whats the issue?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900