如何在c#.net中的datagridview中检查单元格单击和标题单击 [英] how to check the cell click and and header click in a datagridview in c#.net
本文介绍了如何在c#.net中的datagridview中检查单元格单击和标题单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
在我的Windows应用程序中,我有一个datagridview,在那个der中是删除行的按钮,现在我要检查用户是否单击标题或按钮,如何解决此问题,
谢谢
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
推荐答案
der是德语单词,而不是英语单词.
我用过谷歌,你应该试试看. datagridview具有标题单击事件,与正常单击事件分开.
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.
我知道了,如果e.rowindex = -1则用户单击标题
i got it, if e.rowindex=-1 then user click on header
这篇关于如何在c#.net中的datagridview中检查单元格单击和标题单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文