My template looks like this:
%%group
%%header
%%value(section1.sectionName)
%%=section1.col1(Optional) %%=section1.col2(Optional) %%=section1.col3(Optional)
%%footer
%%endgroup
I create my table like so:
Dim dtMain As New DataTable
dtMain.Columns.Add("sectionName")
For i As Integer = 1 To 3
dtMain.Columns.Add("col" & i.ToString)
Next
...populate table
xlt.BindData(dtMain, "section1", xlt.CreateDataBindingProperties)
And then I get the following error:
"binding mentioned in %%value couldn't be found in current group"
But sectionName is there. I've tried it with the positional in the value data marker too:
%%value(section1.#1)
and I get the same message.
Please can someone throw me a bone here? I can't find anything with good, real world code samples out there.
Thanks.