DevExpress.XtraTreeList.TreeList 数据源 必须要有两列

  public int ID {
   get { return fId; }
  }

  public int ParentID {
   get { return fParentID; }
  }

(ParentID列名好像是可以自定义,但ID列名在哪自定义?)

而且数据类型要为int

 

不论数据源为对象数组,还是datatable

 

否则,会抛

[在 System.ArgumentException 中第一次偶然出现的“System.Data.dll”类型的异常]

 

 

NND,为这问题折腾了两天.

相关文章:

  • 2022-01-27
  • 2022-12-23
  • 2021-11-08
  • 2021-11-15
  • 2022-02-22
  • 2021-11-18
  • 2021-08-10
  • 2021-04-30
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-10-17
  • 2021-06-23
相关资源
相似解决方案