By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 995 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

How to make a GridView item label wrap on long text strings?

P: n/a
I have a GridView control with two item template columns, each containing a
label control. One of the label controls wraps on long text strings,
increasing the height of the row. The other one does not wrap. Instead, it
makes the label column extremely wide so that it extends outside the browser
window. How can I make this column wrap the way the other one does?

Thanks,

Keith
Nov 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Did you try specifying the wrap property?

<asp:GridView runat="server" ID="d">
<Columns>
<asp:TemplateField>
<ItemStyle Wrap="true" />
</asp:TemplateField>
</Columns>
</asp:GridView>

"Keithb" <no*****@dslextreme.comwrote in message
news:ev**************@TK2MSFTNGP04.phx.gbl...
I have a GridView control with two item template columns, each containing a
label control. One of the label controls wraps on long text strings,
increasing the height of the row. The other one does not wrap. Instead, it
makes the label column extremely wide so that it extends outside the browser
window. How can I make this column wrap the way the other one does?

Thanks,

Keith
Nov 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.