Monday, 1 February 2010

Asp.Net Dynamic Data – Display Name

This is perhaps the simplest hint to understand.

You put this in the meta data and tell dynamic data what you want displayed as a column header in the list/listdetail view and a field name in the detail & edit views.

The attribute is as easy to use as it sounds simply state the name you want to see:
[DisplayName("Company Name")]
public object CompanyName { get; set;}


And it appears in the UI:

2010-02-01_2153

No comments:

Post a Comment