I have a ASP.NET gridview (embedded in a DIV) with several columns. For some columns line wraps are definied and f开发者_StackOverflowor some not(with ItemStyle.Wrap = true/false). For all columns ItemStyle.Width is set to a specific value. Now I am wondering, that there is a line wrap in a column, where ItemStyle.Wrap = false. What could be the reason for that?
The content (text) has to find a way to fit in the column's width you set thus it is wrapped.
Check the column where the ItemStyle.Wrap = False and see if the width of the column is less than the length of the content.
精彩评论