DataSource绑定不支持A.B的形式,DataBindings可以,而很多控件没有DataBindings属性。
this.dgvColorSchedule.DataSource =  SettingData.Instance.AvCardConfig.ColorSchedule;
this.colScheme.DataPropertyName = "Scheme.Name";
this.colTimeSegment.DataPropertyName = "TimeSegment";

不能处理Scheme.Name,自动截断为Scheme,可以Override  Name属性所在类的ToString().
然后this.colScheme.DataPropertyName = "Scheme";  这种方式不能处理更多属性。

相关文章:

  • 2021-09-10
  • 2021-11-19
  • 2021-07-26
  • 2021-08-29
  • 2021-12-22
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-22
  • 2022-12-23
  • 2021-11-08
  • 2021-11-08
  • 2021-08-29
  • 2021-05-19
  • 2022-12-23
相关资源
相似解决方案