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 » Control of highlight row in CExtGridWnd Collapse All
Subject Author Date
Krustys Donuts Mar 6, 2009 - 10:19 AM

Dear Support,


I have a CExtGridWnd grid that, via drag and drop, allows the user to move rows within the grid. As the row is dragged, the cursor changes to indicate weather or not the row can be dropped at the cursor location. This seems to work fine. Now I would like to add code that highlights the row which will recieve the dragged row when dropped. The complication is that the row to be highlighted may not be under the cursor. That is, as the row is dragged over the grid, I would like to highlight any row in the grid. The row to be highlighted will depend on the row over which cursor is located, but may not be the row over which the cursor is located. Hope this made sense. I look forward to your response/questions.


Gil

Technical Support Mar 9, 2009 - 10:39 AM

We coded a very similar task but it’s related to the tree grid window. Please take a look at the following test project:

http://www.prof-uis.com/download/forums/test_tree_grid_idea_dnd.zip

It that is the kind of drag-n-drop target row highlighting you need? Will you be able to port parts of code from the test project above into your project?