1

I have a DataForm that does 90% of what I need. I would like to add a few fields of my own. This tutorial provides an example of how to do this, but it looks like I need to override everything to do that. (I'd rather not have that extra bulk.)

This question looks like there might be a way by subclassing DataForm, but that seems kinda messy, and I'd like to stick to specifying the UI declaratively instead of procedurally.

Any other way to do this, or do I have to bite the bullet?

Community
  • 1
  • 1
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699

1 Answers1

0

The best approach I found was, unfortunately, overriding the default dataform with one that includes support for the data annotations from vanilla WCF.

http://new.efficientcoder.net/2010/06/using-dataannotations-on-generated.html

It sounds like this is the approach may be the one you are trying to avoid, but I haven't found anything better.

Brandorf
  • 787
  • 3
  • 16