Click here to Skip to main content
15,906,574 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,

Query: Suppose i have written a sentence in one column of Gridview ,let us assume that sentence has 50 words.Now I want to display 10 words per line in that column.
Posted
Comments
walterhevedeich 14-Jul-11 2:26am    
Your question is not clear. Do you mean you want a word wrap, or will you cut the sentence to 10 words to fit the column?
Sergey Alexandrovich Kryukov 14-Jul-11 2:27am    
It is not a question. Display those words; what's the problem?
--SA
Ramakrishna Alla 14-Jul-11 3:02am    
Just i want to display all the sentence in gridview column only but within that column as lines and per line 10 words.
if you get me please help me i am beginner if not you get this sorry for inconvenience.

String.split can help yo achieve this[^].
 
Share this answer
 
Comments
thatraja 14-Jul-11 3:22am    
Right call & also I made an addition in my answer.
5!
Already I have answered similar question long time ago, please see my answers

How to make label multiline - (inside gridview column)[^]
DataGridView multiline cell.[^]
Wrap Continuous Text in GridView[^]

Use the split function(Like Abhinav said) in your coding to handle the string dynamically
 
Share this answer
 
Comments
Abhinav S 14-Jul-11 3:54am    
Yup. my 5.

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