Here's what I want to do
@for (int i = 0; i < 14; i++)
<GridColumn Field="@CellDate + (i + 1).ToString()" Title="@SelectedStartDate.AddDays(i).ToShortDateString()" />
But I can't seem to get it to compile. It throws and error:
error RZ9986: Component attributes do not support complex content (mixed C# and markup).
So I get that it doesn't support complex content. I can easily put one line per field, but I don't know the title until runtime. How to set the title as desired?
Is there a way to throw this in a loop at all?
Thanks … Ed