Solved

Multiline textbox in BoundField (DetailsView)

Posted on 2009-05-18
3
1,697 Views
Last Modified: 2012-05-07
How can I have a wrapping-enabled multiline textbox in DetailView's BoundField ? I have tried lot's of different combinations (for e.g ItemStyle wrap="true" inside BoundField) but non of that seems to work.
As default only the single line is generated but for example I have Solutions -field which needs this functionality. Writing all to single line is just pain.

Note: I cannot use EditTemplate functionality to add multiline.
<asp:boundfield DataField="solution" HeaderText="solution" SortExpression="solution">

</asp:boundfield>

Open in new window

0
Comment
Question by:csaexperts
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 500 total points
Comment Utility
can you use a TemplateField and ItemTemplate to add a multi line text box in read only state and set the multiline to true and thus it wil wrap te ext as desired
0
 

Author Comment

by:csaexperts
Comment Utility
no ragi.. i dont want to use Template field and itemtemplate....I want to add multiline in  boundfield...
0
 

Author Comment

by:csaexperts
Comment Utility
I was able to resolve the issue...Thanks anyways
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now