1. the property grid does not display fields
2. One of the reasons why data-binding support is limited to properties happens to be the fact that all of data-binding is built around PropertyDescriptors and not on direct reflection. This allows someone to implement ICustomTypeDescriptor to provide a different OM for the purposes of data-binding than the true set of properties present on the CLR type. For example, DataRowView implements ICustomTypeDescriptor to surface its columns as pseudo-properties that are visible to ASP.NET's data-binding infrastructure (such as GridView/DataGrid columns and DataBinder.Eval). Without this, DataRowView would have two properties - DataView and Index (and the second is the only one remotely interesting for data-binding).

For more information, please refer to:
http://www.nikhilk.net/Entry.aspx?id=42

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
猜你喜欢
  • 2022-12-23
  • 2021-09-17
  • 2022-03-04
  • 2022-12-23
  • 2021-05-08
  • 2021-04-17
相关资源
相似解决方案