本文介绍了如何使用asp.net在网格视图控件中中断行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将该行分成多个子行.
例如:我有这样的行

世界,你好吗?


我需要以下输出

世界您好

I want to break the row in to multiple sub row.
For example : I have a row like this

Hello world how r u.


i need the output as below

Hello world
how r u..

推荐答案


Row1<br />Row2<br />Row3


它会显示如下所示的输出
第1行
行2
行3

顺便说一句,您可以使用ItemStyle-Wrap="true"
包装内容


It''ll show you output like below
Row1
Row2
Row3

BTW you can wrap the content by using ItemStyle-Wrap="true"

<asp:gridview id="GridView1" runat="server" xmlns:asp="#unknown">
<columns>
<asp:boundfield itemstyle-wrap="true" datafield="Column1" />
</columns>
</asp:gridview>



这篇关于如何使用asp.net在网格视图控件中中断行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 23:08
查看更多