DataForm, DropBox and data annotations (description and such)
I've got a DataForm in which I replace some TextBox fields with DropBoxes to imitate a lookup using the AutoGeneratingField event.
However, when I do that, I loose any data annotations that could otherwise be used (such as a description which I specified in my data model).
Is there a way to get these values from the data model without resorting to auto-generated fields? The DataFormAutoGeneratingFieldEventArgs
开发者_JS百科 parameter doesn't seem to contain them.
Set the DataField.PropertyPath property to the name of the model property with metadata.
精彩评论