10781 : It is possible (using a key for example the CTRL) to lock the mouse movement along a row (Y position fixed) ?

Question

Hi, I have an application developed in VB.NET (VisualStudio2005) that use the GTP.NET. It is possible (using a key for example the CTRL) to lock the mouse movement along a row (Y position fixed) ? When I have several rows in the Gantt I want to make sure that I move only on the same row that I select (during the movement I display the details in a different form area) I hope to be clear. Thanks for the support

Answer

To stop a user from moving a time item between rows you can set the TimeItemLayout.AllowChangeRow to false. You can check in the OnMouseDown event if the special key that you decide is held and set TimeItemLayout.AllowChangeRow for all selected time items to the desired value.