比如说将第一级设置为有checkbox,其子节点设置为没有checkbox,有什么办法吗?

解决方案 »

  1.   

    在初始化树的时候进行判断是否为第一级节点,如果是,checkbox设为true,否则设为false
      

  2.   

    to 比如说将第一级设置为有checkbox,其子节点设置为没有checkbox,有什么办法吗?.net带的treeview不支持,可以用第三方插件。其次,可以用ImageIcon来模拟。
      

  3.   

    to Knight94(愚翁)
    其次,可以用ImageIcon来模拟。
    ----
    如果用ImageIcon模拟,如何很准确的模拟鼠标点击image比较难,你有什么好的思路吗?
    多谢!
      

  4.   

    Internet Explorer advanced settings tree view clone. Supports checkbox and radio button nodes.
    http://www.codeproject.com/cs/miscctrl/TreeViewRadioBox.aspGenerating missing Paint event for TreeView and ListView controls
    http://www.codeproject.com/cs/miscctrl/genmissingpaintevent.asp