Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » OnGridCellInputComplete problem - URGENT PLEASE Collapse All
Subject Author Date
Offer Har Mar 25, 2008 - 10:51 AM

I have a tree. The tree contains two columns. the second columns is a numeric cell.


When a numeric cell in the tree is updated, I need to update its parent numeric cell with that number. I over ride OnGridCellInputComplete for this, but I don’t know how to get the TREEITEM of that cell, so I cannot call ItemGetParent to reach its parent.


Any advise?


Ron.

Technical Support Mar 26, 2008 - 12:07 PM

The CExtTreeGridWnd::ItemGetByVisibleRowIndex() converts a plain zero-based row index into a HTREEITEM handle. The CExtTreeGridWnd::ItemGetVisibleIndexOf() method converts a HTREEITEM handle into a plain zero-based row index. Please note it is not possible to get a plain row index of a tree item if at least one of its parent items is collapsed.