gridview单元格中的新行 [英] New line in gridview cell

查看:73
本文介绍了gridview单元格中的新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个网格视图单元格,其中一些单词用,分隔。

这里我要新行每10个单词在网格视图单元格中。



提前致谢

Venkatesh

Hi all,

I have a grid view cell with some words separated by ",".
here i want new line in grid view cell for every 10 words.

Thanks in advance
Venkatesh

推荐答案

您可以使用替换功能。

试试这个:

You can use Replace function to do the same.
Try this:
<itemtemplate>
        <%# ((string)Eval("Details")).Replace(",", "<br />") %>
</itemtemplate>





--Amit



--Amit


这篇关于gridview单元格中的新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆