I searched a lot about it on google. But I had no idea. Thank you all in advance.
Question: I have a html source in my datatable column.when it binds to my gridview, I need to show this html output in my gridview column. Is this possible ?
current output:

My aspx code:
protected void Page_Load(object sender, EventArgs e)
{
DataTable dtEmployees = new DataTable();
dtEmployees.Columns.Add(new DataColumn("FirstName", typeof(System.String)));
dtEmployees.Columns.Add(new DataColumn("LastName", typeof(System.String)));
dtEmployees.Columns.Add(new DataColumn("HomePhone", typeof(System.String)));
dtEmployees.Columns.Add(new DataColumn("CellPhone", typeof(System.String)));
dtEmployees.Columns.Add(new DataColumn("Address", typeof(System.String)));
DataRow drEmpDetail = dtEmployees.NewRow();
drEmpDetail["FirstName"] = "Tony";
drEmpDetail["LastName"] = "Greg";
drEmpDetail["HomePhone"] = "000-000-0000";
drEmpDetail["CellPhone"] = "000-000-0000";
drEmpDetail["Address"] = "Lane 1 Suite # 2 <br>";
}
Just, for example, in the "Address" column, I gave the html tag for the "break tag". But at the output, it simply displays as a string, the result does not match what was expected.
Note: I do not want to use the Template field instead of the BoundField.
source
share