Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

datagridview cellclick event works like cellcontentclick

I am a newbiew in c# and visual studio, and I am planning in developing a inventory system using the datagridview. When I was testing it and using the cellclick event, it worked like the cellcontentclick event, which I have to click the content to make sure it is the clicking is read by the app, any suggestion?

like image 357
Andrew Taswin Avatar asked Jan 12 '13 15:01

Andrew Taswin


1 Answers

Using the cellclick event is much better over the cellcontentclick. If you only have text inside the cells, you'll most likely have significant blank space that will not trigger the event if you are using the cellcontentclick. That would create a confusing user experience if the event triggers only when the text is clicked.

Only use the cellcontentclick if you have a specific reason for using it, and for 99% of the time, you should be using cellclick.

like image 96
krillgar Avatar answered Nov 20 '22 21:11

krillgar