【发布时间】:2013-06-11 12:12:28
【问题描述】:
我有 html 文本数据,我想在我的 gridview 单元格中绑定这些数据。
但我的 datagridview 不是格式化的 html 文本。
exp:
string htmltext = "<p>hi some text here</p>";
dgrow.rows[0].cell[1].value=htmltext;
在这种情况下,我的 gridview 的单元格值也包含 Html 标记。 那么如何在我的网格视图中格式化 Html 文本?
【问题讨论】:
-
来自 WebForms 的 GridView?
-
我正在使用 win 表单而不是 web。
-
This link对你有用..