This question is locked. New answers and comments are not allowed.
Hi there,
When I bind GridViewComboBoxColumn to an object type attribute in my class, (e.g. gender in my example), the column filter and grouping does not work (filter funnel disappeared in the column header and the column cannot be dragged to the grouping area) in the GridView. Could you show me how to get it back? Thanks.
| public class Model |
| { |
| private string _id; |
| private string _name; |
| private GenericLookUp _gender; |
| [Display(Name = "Model ID")] |
| [Editable(false)] |
| public string id |
| { |
| get |
| { |
| return _id; |
| } |
| set |
| { |
| _id = value; |
| } |
| } |
| [Display(Name = "Model Name")] |
| [Required(ErrorMessage = "Model Name is required")] |
| public string name |
| { |
| get |
| { |
| return _name; |
| } |
| set |
| { |
| Validator.ValidateProperty(value, new ValidationContext(this, null, null) { MemberName = "name" }); |
| _name = value; |
| } |
| } |
| public GenericLookUp gender |
| { |
| get |
| { |
| return _gender; |
| } |
| set |
| { |
| _gender = value; |
| } |
| } |
| } |
Regards,
Andrew
