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 » Get selected items in CExtTreeGridWnd Collapse All
Subject Author Date
Rado Manzela Feb 26, 2007 - 9:32 AM

How can I iterate over all selected items in tree grid ? (full row selection, multiple items selected) ?
I could not find functions for getting selected tree grid’s items.
Thank you!

Rado Manzela Feb 27, 2007 - 3:04 AM

Thank you. I was not sure if this would work correctly.

Technical Support Feb 26, 2007 - 11:03 AM

Because CExtTreeGridWnd is inherited from CExtGridWnd, you can use the following two methods of the latter for enumerating selected items: SelectionGetFirstRowInColumn() and SelectionGetNextRowInColumn(). The column index should be zero. You can then convert row indexes into HTREEITEM handles using the CExtTreeGridWnd::ItemGetByVisibleRowIndex() method.