ListControls
ListControls copied to clipboard
Support for attributes
Attributes like DisplayName or ReadOnly could be useful.
You'll need to be more specific. In regards to what?
For example, with this class:
public class Person
{
[Browsable(false)]
public string FirstName { get; set; }
[Browsable(false)]
public string LastName {get;set;}
[DisplayName("Full Name")]
public string FullName => $"{FirstName} {LastName}";
}
If a MultiColumnComboBox is binded with a List< Person>, the properties with Browsable(false) attribute will not generate columns, and the properties with DisplayName will generate columns with the specified name.