Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
UltraGrid CellClickAction.CellSelect seems to interfere with MouseUp Event
posted

I have a BaseListControl that contains an UltraGrid, and several class inheriting from it (we have several grids around the app).

The base has the row selection enabled by default - DisplayLayout.Override.CellClickAction is set to RowSelect. However, one of the inheriting classes requires CellSelect (for drag & drop functionality at cell level).

When I set:

            myGrid.DisplayLayout.Override.CellClickAction = CellClickAction.CellSelect;

In the inheriting class' InitializeComponent, the MouseUp event does not fire (unless I click on a scroll bar or on a line drawn in between cells). But when I comment out the above line of code, MouseUp fires every time.

I should mention - MouseDown always fires, whether the above line is there or not.

Any help would be much appreciated.

Parents
  • 110
    posted

     Okay, I've done some poking around and it seems like the cell in the grid is getting the MouseUp message and not passing it on to anything else.

     I tried a PreFilterMessage on the control containing the grid, and it only caught MouseUp as described above.

    I guess what's happening is that the grid gets the MouseDown, and gives it to the appropriate cell, but then the cell becomes the active entity and keeps MouseUp to itself.

     So, is there any way to get the cell to throw the mouse message up to it's parent?

     Many thanks.

Reply Children