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 » Enabling column movement Collapse All
Subject Author Date
Eric Houvenaghel Oct 7, 2008 - 1:54 PM

I’m using the CExtGridWnd in virtual mode.


How do you enable column movement?


I’d like to be able to drag and drop columns like you can do in CExtReportGirdWnd.


I’m sure there’s a posting about it somewhere but I can’t find it.

Technical Support Oct 9, 2008 - 6:47 AM

You should apply relevant __EGBS_BSE_EX_DRAG_*** styles using the grid’s BseModifyStyleEx() method. The __EGBS_BSE_EX_DRAG_START_COLUMNS | __EGBS_BSE_EX_DRAG_SWAP_COLUMNS style combination is most often used. The __EGBS_BSE_EX_HIGHLIGHT_PRESSING_COLUMNS_INNER, __EGBS_BSE_EX_HIGHLIGHT_PRESSING_COLUMNS_OUTER and __EGBS_BSE_EX_HIGHLIGHT_PRESSING_STAY_COLUMNS styles are also often used for highlighting drag-n-dropped columns.