Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# right click event

	
private void dataGridView1_MouseDown(object sender, MouseEventArgs e)
{
    if( e.Button = MouseButtons.Right )
    {
        dataGridView1.ContextMenu = contextMenu1;
        dataGridView1.ContextMenu.Show( dataGridView1, e.Location );
    }
}
 
PREVIOUS NEXT
Tagged: #click #event
ADD COMMENT
Topic
Name
7+1 =