Details View - Wrap text entered

Wizilling
Wizilling used Ask the Experts™
on
i am using vb.net 2005. I am building a asp.net website.
I have place a Details View Grid and configured it (through the wizrd ) to select, insert, update data from a SQL 2005 database.
Have set the default mode for the details grid view as INSERT (so far all is ok)

I have a field in there called "Comments" Now in here , if the user enters a long comment then I want it to wrap and continue from the next line for that field.
How do i do this please/?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2008

Commented:
Is the Comments defined as a BoundField?  With the ItemStyle for the BoundField the default for word wrap is true.

Bob

Author

Commented:
yes, its a bound field and item style defined as wrap =true.
Most Valuable Expert 2012
Top Expert 2008

Commented:
Are there spaces between the words, or is it a long sequence of characters without breaks?

Bob
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

Author

Commented:
Hi , Thanks for you help, but i managed to fnid the answer in aother website.
Basically, only through code can that particular task be done. so i code it in the objects page load property.
DirectCast(DetailsView1.Rows(11).Cells(1).Controls(0), TextBox).TextMode = TextBoxMode.MultiLine
http://forums.asp.net/p/975017/1235816.aspx

Most Valuable Expert 2012
Top Expert 2008

Commented:
Very good grasshopper!!

Bob
Closed, 500 points refunded.
kb
Experts Exchange Moderator

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial