This question is locked. New answers and comments are not allowed.
Assume I have a ViewModel that has this:
[DisplayName("Location")]
[UIHint("Location")]
public int? LocationId { get; set; }
[DisplayName("Location")]
public string LocationName { get; set; }
The LocationId property is used so I can provide a dropdown box in the insert/edit screens.
The LocationName property is used so I can see the location name in the grid and get things like filtering on the grid.
However, when I go to the Insert/Edit screen, both "Location" controls are created. Is there an attribute I can use, or another way to use the string on the grid and the id on the insert/edit screen?
[DisplayName("Location")]
[UIHint("Location")]
public int? LocationId { get; set; }
[DisplayName("Location")]
public string LocationName { get; set; }
The LocationId property is used so I can provide a dropdown box in the insert/edit screens.
The LocationName property is used so I can see the location name in the grid and get things like filtering on the grid.
However, when I go to the Insert/Edit screen, both "Location" controls are created. Is there an attribute I can use, or another way to use the string on the grid and the id on the insert/edit screen?