Hi,
I am looking at the syncfusion propertygrid demo. I have looked at several examples, but cannot find an example that matches my query.
I have made one change to the demo, to the Person model I added
a property
[CategoryAttribute("ListDemo")]
[Display(Description = "List Test", Order = 9, Name = "Customer bank accounts", GroupName = "ListDemo")]
public ObservableCollection<Bank> Banks
{
get;
set;
}
and to the constructor
Banks = new ObservableCollection<Bank> { new Bank(name:"Centura Banks", accountNumber:00987453721, customerId:"carljohnson", passWord:"nuttertools"),
new Bank(name:"City Bank", accountNumber:00123456789, customerId:"johnk", passWord:"helloworld")};
The result compiles and I get a new Category called List Demo in the propertygrid. In that category I see a property called Customer bank accounts, but when I expand that property, I only see that there are 2 models - but the properties of those models are not accessible.
Is there a way to list the bank models with accessible properties under the category List Demo. It should not be assumed that it is known how many items the ObservableCollection collection holds. And how would I best handle a null - for example there is no bank account for that person on file? Would at also be possible to add or delete a bank model to/from the ObservableCollection holding the bank models at runtime?
Kind regards,
Niels van Strien
Attachment:
PropertyGridDemo_c41d0bb3.7z