Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi everybody,
In my windows application, i have a datagridview, in that der is button to remove the rows, and now i want to check whether the user click on header or on button, how to solve this,
thanking you
Posted

der is a German word, not an English one.

I used google, you should try it. The datagridview has header click events, seperate from the normal click events.
 
Share this answer
 
i got it, if e.rowindex=-1 then user click on header
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900