Solved

Multiline textbox in BoundField (DetailsView)

Posted on 2009-05-18
3
1,713 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Registering DLL 5 43
Angular JS Route 3 47
Pagebreak issue while printing the aspx page 3 14
When should I use a controller? 3 10
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

912 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

17 Experts available now in Live!

Get 1:1 Help Now