开发者

ASP.NET: Question about the column-line-wrapping feature in gridviews

开发者 https://www.devze.com 2023-01-19 07:44 出处:网络
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 Ite

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消