Click here to Skip to main content
15,914,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a big scrollable GridView that contains many headers that have a line break and I don't why the GridView shows these data in more than one line. I want all the headers to be in one line. How to do that?

By the way, the GridView is bound to StoreProcedure. So I don't have <boundfield> or <templatefield>
Posted

i think you need to say like this...

your header text like this... "Column 1 is Used For.." then it will be displayed like this..

"Column 1 is
Used For.."

m i right..?

and you need to display like "Column 1 is Used For..."

so you need to apply css class for header with the property like this...
CSS
.HeaderText
{
white-space:nowrap;
}
 
Share this answer
 
v2
Comments
matrix388 16-Jan-12 3:59am    
You are right and I used what you said but it did not work with me.
Tejas Vaishnav 16-Jan-12 4:21am    
please provide your grid design code so i will try to solve your problem..
NandaKumer 16-Jan-12 12:44pm    
good one
You can have Jquery.append(text).addClass()
 
Share this answer
 

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