Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How to prevent click event button on datagridview executed if i click outside button

$
0
0

Problem

I have datagridview have button if i focus on it and click outisde button meaning click in any place on datagridview header

it will execute the button code although i dont make click on button only I focus on it .

i work on visual studio 2015 windows form 

How to solve this problem please ?

actually i need when focus on button and click on button execute button click but in my case 

button click execute if i click outside button .


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>