473,378 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Wrap text in datagrid

Hi,
how do I set the wrap property to FALSE for a datagrid with autocolums
enabled?
I know there's a work around this bug when the columns are set up in design
time but I need the autocolumns option checked.

Thanks in advance.
Diego.
Nov 18 '05 #1
1 5738
Diego,
The AutoGenerateColumns is a great feature, but with the ease of
development you gain, you lose control. To forbid test wrapping, you need
to explicitly define your columns so that you can tell a specific column not
to wrap the text. Now, you can set wrapping on every column.
<asp:DataGrid Runat="server" AutoGenerateColumns=True>
<ItemStyle Wrap=False></ItemStyle>
</asp:DataGrid>
This will forbid every column to wrap text.

Best regards,
Jeffrey Palermo

"Diego" <1@2.com> wrote in message
news:Ok**************@TK2MSFTNGP15.phx.gbl...
Hi,
how do I set the wrap property to FALSE for a datagrid with autocolums
enabled?
I know there's a work around this bug when the columns are set up in design time but I need the autocolumns option checked.

Thanks in advance.
Diego.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: amber | last post by:
Hello, I have a datagrid column header that is quite long, and I would like it to appear on 2 lines instead of 1. Is this possible? TIA. Amber
1
by: Bernerd | last post by:
Would anyone out there tell me how to make my C# datagrid wrap the text in the cells. I haven't seen a good how to out there that does this. I know it has something to do with using styles but...
1
by: PB | last post by:
How to wrap a single continous word like 'HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH' in dataGrid on a web page.
10
by: Jeff B. | last post by:
Has anyone come across a decent algorithm for implementing word wrap features in .net printing? I have a small component that uses basic printing techniques (i.e. e.Graphics.DrawString in a...
0
by: Lam | last post by:
hi I wrote a windows application which will shows that data from the database in a datagrid. each column has long header text but small content. how can I wrap the header text? thanks
2
by: Diego | last post by:
Hi, how do I set the wrap property to FALSE for a datagrid with autocolums enabled? I know there's a work around this bug when the columns are set up in design time but I need the autocolumns...
2
by: Mark Rae | last post by:
Hi, Is there a bug in the GridView control specifically related to wrapping of header text...? E.g. the following tag <asp:GridView HeaderStyle-Wrap="false" ID=gvListUsers runat=server ......
3
by: Jason | last post by:
Anyone know how to make the text wrap in a text box of a DetailsView?
0
by: RN1 | last post by:
I have a DataGrid whose HeaderStyle-Wrap property has been set to False but the headers still get wrapped within the cells. How do I avoid wrapping? Even setting the ItemStyle-Wrap property of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.