Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

DataTable with html formating

$
0
0

Hi,

I have a SPGridView in my webpart and it is bounded to a DataTable. I would like to add a sub-table in one of the columns (fieldc), when I tried the following, it doesn't recognize the html tag. How can I do it so that it will recognize the html tag?

DataTable dt = new DataTable();
DataRow row = dt.NewRow();

row["field1"] ="aaa"; 
row["fieldb"] ="bbb"; 
row["fieldc"] ="<table><tr><td>ccc</td></tr></table>";  <---

Thanks in advance. Your help would be greatly appreciated!


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>