View Single Post
  #2 (permalink)  
Old March 8th, 2009, 11:48 PM
pons_saravanan pons_saravanan is offline
Authorized User
Points: 198, Level: 3
Points: 198, Level: 3 Points: 198, Level: 3 Points: 198, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Apr 2008
Location: singapore, singapore, Singapore.
Posts: 54
Thanks: 0
Thanked 4 Times in 4 Posts

Originally Posted by chobo2 View Post

I have a gridview and one of the columns is called description. Of course this field could get very long and right now I can have about 36characters with no spaces before my grdiview would start go out of the areas I want them to.

If they have spaces then maybe word wrapping will kick in but I am wondering anyone knows any better ways of doing it.

What I was thinking of was somehow cutting of the amount of the description and making that amount shown as a hyperlink or something. When pressed something would popup(not a new window though) and would have the full description but I don't know how to do this.

First I have to hide all the description in a way I can retrieve easy or I need to use ajax to query for that description on click.

So anyone have anyideas or any tips how I could do something like this? Or a better way of doing what I want to do?
If you want it to be wraped even though it does not have any space. You may try to bind it to a textbox with multline enabled. I remember i have done this long back.

Have you tried any CSS possiblities like whitespace with pre,normal etc..
Pon Saravanan