Hey all!
I was wondering if somebody could help me get my head around the syntax that i need to use for the templatecolumn within a datagrid.
All of the code that i have come across while researching has been the code required for the "HTML" view rather than the codebehind where i would like to implement this.
The problem that i have is with displaying more than one database value within a single cell (ive also come across examples of HTML tables being inserted into a single cell which would be handy). The syntax i have for a boundcolumn is as follows:
BoundColumn views = new BoundColumn();
views.DataField = "Views";
views.DataFormatString = "{0}";
views.HeaderText = "Views";
The problem with this is that i can only display this single value within the cell. I would be able to insert something similiar to the following:
"Number of views: <b>" + views + "</b><br>
Total Number: <b>" + total + "</b>";
Thanks in advance.
GavW
I was wondering if somebody could help me get my head around the syntax that i need to use for the templatecolumn within a datagrid.
All of the code that i have come across while researching has been the code required for the "HTML" view rather than the codebehind where i would like to implement this.
The problem that i have is with displaying more than one database value within a single cell (ive also come across examples of HTML tables being inserted into a single cell which would be handy). The syntax i have for a boundcolumn is as follows:
BoundColumn views = new BoundColumn();
views.DataField = "Views";
views.DataFormatString = "{0}";
views.HeaderText = "Views";
The problem with this is that i can only display this single value within the cell. I would be able to insert something similiar to the following:
"Number of views: <b>" + views + "</b><br>
Total Number: <b>" + total + "</b>";
Thanks in advance.
GavW