Home Forums WinForms controls Xceed Grid for WinForms Grid’s MouseUp Event?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #17384 |

    I created a grid control using the following:
       Private WithEvents gridControl1 As Xceed.Grid.GridControl
    The MouseUp event for the Grid is never called
       Private Sub gridControl1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles gridControl1.MouseUp
    What am I doing wrong?

    Imported from legacy forums. Posted by Morgan (had 1042 views)

    Xceed Support
    Post count: 5658

    Hi Morgan,

    When dealing with mouse and keyboard events, once there are rows in the grid, if these rows contain cells, it is the cells that will raise the mouse and keyboard events. If the row does not have cells, then it is the row that will raise the events. With the mouse and keyboard events, it is easier to think of the grid as a panel containing “child” rows which in turn contain “child” cells. 

    You won’t get mouse and keyboard events directly from the grid once it contains data, therefore you will need to subscribe to the Click event of each cell of the DataRowTemplate.


    For example:

    starterGrid.DataRowTemplate.Cells[“UnitsInStock”].MouseUp += new MouseEventHandler(StarterGrid_MouseUp);

    void StarterGrid_MouseUp(object sender, MouseEventArgs e)


                object ob = sender;




    Imported from legacy forums. Posted by Mohamed [Xceed] (had 1010 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.