Complete syntax of DataBinder.Eval() ?

S

Simon Storr

I've been using DataBinder.Eval(container, expression, format) to late-bind
controls in an aspx template with a typed dataset, but finding the syntax of
'expression' has been pure guesswork... Is there a reference anywhere for
the complete syntax of what's possible with 'expression' for datasets? All
the examples I've found have been for simple fields but I need to have
relations bound as well. I've worked out that

Tables[mytable].DefaultView.[0].[myfield]

will get me field 'myfield' in table 'mytable' in the dataset, but I can't
work out how to get relations, eg.

myrow.GetParentRow("mychildfield")["myparentfield"]

Is this even possible?

Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top