Monday, August 17, 2009

How to Prevent Word Wrap in an ASP.NET GridView

Recently I came across an interesting answer by Jason, where he suggests how to stop word wrap in an ASP.NET GridView. I thought of sharing this trick with the viewers facing similar issues:

The trick is to use





Check this sample:





HorizontalAlign="Left"
Wrap="True" />


runat="server"
Text='<%# Bind("SomeLongText") %>'>







I am sure there are many developers who had this problem in the past without a decent solution. Let me know if it worked for you!

No comments:

Post a Comment