Hello,
I have written a (custom) webpart that shows data from a DataSet, in this webpart there is a CMSRepeater which is linked to a Transformation.
Example:
//C#Code
CMSRepeater rep = new CMSRepeater();
rep.TransformationName = TransformationName;
rep.ItemSeparator = "<hr />";
DataSet dsData = new DataSet();
DataTable tblData = dsData.Tables.Add();
tblData.Columns.Add("Column1", typeof(string));
tblData.Columns.Add("Column2", typeof(string));
tblData.Columns.Add("Column3", typeof(string));
tblData.Rows.Add("Column1text", "Column2text", "Column3text");
rep.DataSource = dsData;
this.Controls.Add(rep);
//Transformation
1: <%# Eval("Column1") %>
<br />
2: <%# Eval("Column2") %>
<br />
3: <%# Eval("Column3") %>
Now I want to add a fourth Column which is an Array of strings, how can I show the values in a transformation?
Example:
//C#Code
tblData.Columns.Add("Column4", typeof(string[]));
//Transformation
4: <%# Eval("Column4") %>?????
I have tried using a CMSDataList but it is not working for me, can’t find an example on how to create nested repeaters in C# Code. Can you tell me how realize this?
Thanks in advance,
Remy Bakker