cancel
Showing results for 
Search instead for 
Did you mean: 

Treeview to add checkbox in front of sign (+) and (-)

Former Member
0 Kudos

Hi All,

Would like to check how to add checkbox in front or sign(+) and sign(-) in the treeview as below.

The checkbox is for user to select (allow multi select) and then pass as parameter to datawindow to generate report.

And when user select the parent, it will automatically select all children under it.

Possible to do so?

Kindly advise.

Thank you.

BR,

Yow

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

See SyBooks Online (Archive) for more details

Former Member
0 Kudos

tv_1.CheckBoxes = TRUE

Use GetItem to populate a TreeViewItem for the node (handle)

The StatePictureIndex is 2 when checked and 1 when unchecked

  1. treeviewitem ltvi 
  2. this.GetItem ( handle , ltvi ) 
  3. if ltvi.StatePictureIndex = 2 then
  4.    ....