DataGridView的第一列,第一列,负载选择,我不想要这个 [英] DataGridView first column,first row, is selected on Load, I don't want this

查看:136
本文介绍了DataGridView的第一列,第一列,负载选择,我不想要这个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以基本上在第一行的第一列总是选择,我不能想出一个办法把它使GridView控件没有选中的单元格。任何帮助吗?

So basically the very first column in the first row is always selected, I can't figure out a way to have it so the gridview has no selected cells. Any help?

推荐答案

我有这个同样的问题,什么也没有工作。为我工作的解决方案是在制表位属性设置为False,数据绑定后,立即调用ClearSelection()方法。

I had this same issue and nothing was working. The solution that worked for me was setting the 'Tabstop' property to False and calling the ClearSelection() method immediately after the data bind.

这篇关于DataGridView的第一列,第一列,负载选择,我不想要这个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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