Solved

Multiline textbox in BoundField (DetailsView)

Posted on 2009-05-18
3
1,729 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
ID: 24414352
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
ID: 24414672
no ragi.. i dont want to use Template field and itemtemplate....I want to add multiline in  boundfield...
0
 

Author Comment

by:csaexperts
ID: 24415198
I was able to resolve the issue...Thanks anyways
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What is "public object" in C#? 3 47
Problem to refer to value 8 50
Regex validation 2 25
List<PaisEntity> - show some 1 24
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

810 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