Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 8th, 2009, 11:04 PM
Friend of Wrox
 
Join Date: Sep 2007
Location: , , .
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default Any ideas on how I can present this nicely?

Hi

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?
Reply With Quote
  #2 (permalink)  
Old March 8th, 2009, 11:48 PM
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
Default

Quote:
Originally Posted by chobo2 View Post
Hi

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
VbKnowledgebase.com, VBNetTutorial.net
Car Forum, Car Blog
Reply With Quote
  #3 (permalink)  
Old March 8th, 2009, 11:50 PM
Friend of Wrox
 
Join Date: Sep 2007
Location: , , .
Posts: 169
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by pons_saravanan View Post
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..
No I have not tried .css. how could i set a textbox on that column through code behind?
Reply With Quote
  #4 (permalink)  
Old March 9th, 2009, 01:05 AM
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
Default

Quote:
Originally Posted by chobo2 View Post
No I have not tried .css. how could i set a textbox on that column through code behind?
Using template column. Please add the text box to itemtemplate.

you may refer this

http://www.vbknowledgebase.com/WebAp...and-css-styles
__________________
Pon Saravanan
VbKnowledgebase.com, VBNetTutorial.net
Car Forum, Car Blog
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing of data's previous .. to.. present anukagni Access 5 June 21st, 2006 01:37 AM
The given key was not present in the dictionary charnata ASP.NET 2.0 Professional 1 May 26th, 2006 12:07 PM
Cell Height not behaving nicely rodmcleay HTML Code Clinic 2 February 24th, 2006 09:43 AM
In which Namespace the ObjectList Classs present sreenugotla General .NET 0 March 21st, 2005 04:08 AM
How to Validate a Date for present and Future Cute Designer J2EE 1 November 9th, 2004 09:45 PM



All times are GMT -4. The time now is 03:08 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.