datagridview.clearselection()不起作用 [英] datagridview.clearselection() not working

查看:686
本文介绍了datagridview.clearselection()不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我想清除选择的行以及单击按钮后的行,
我知道datagridview.cleaselection()可以正常工作,但事实并非如此,
我在按钮单击事件中使用了它,事件处理程序也用于按钮单击,我在这里遗漏了一些东西,其他任何方法也都可以,只是想在按钮单击后清除选定的行或行.


预先感谢

Hello,
I want to clear selected row as well as rows after a button click,
I know datagridview.cleaselection() works fine but it is not,
I have used it in event on button click and the event handler also there for button click,am I missing something out here,any other method will also do,just want to clear selected rows or rows after button click.


Thanks in advance

推荐答案

ClearSelection()可以正常工作,并通过取消选择所有选定的行来清除选择.它不清除行,仅清除选择...
ClearSelection() works fine and clears the selection by unselecting all selected rows. It does not clear the rows, only the selection...


这篇关于datagridview.clearselection()不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆