Jump to content

Getting index of an empty row in a tree control


Recommended Posts

Hi,

I need to get the row index of an empty row in a tree control. The idea is to allow user to type in new information to the tree control when she/he click a cell in the tree. The problem is that even though there is a method Point to Row Column in tree control, the method doesn't return row index but row tag. Since there is no row tag on empty rows, the method doesn't return any row-related information on empty rows.

The question is how can I find out the row index when user clicks on the tree control.

jimi

EDIT: I figured it out by myself. One can typecast tree control reference to MultiColumnListbox reference and then use the method Point to Row Column method from MultiColumnListbox. This may not be very future proof way but it works currently. Any ideas of how to do this without using this trick?

post-4014-1169563678.png?width=400

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.