无法在TabControl中将DataGridViewCheckboxCell设置为DataGridView中的Checked [英] Unable to set DataGridViewCheckboxCell to Checked in DataGridView in a TabControl

查看:132
本文介绍了无法在TabControl中将DataGridViewCheckboxCell设置为DataGridView中的Checked的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

无法在TabControl中将DataGridViewCheckboxCell设置为在DataGridView中检查



请告诉解决方案。

Hi
Unable to set DataGridViewCheckboxCell to Checked in DataGridView in a TabControl

Please tell the solution.

推荐答案

我也遇到了同样的问题。

我注意到在网格上存在几次选择选项卡可以检查网格上的复选框。因此,如果在加载表单时该选项卡不是您的默认选项卡,您可以通过分配两个选项卡的索引在默认选项卡和带有网格的选项卡之间切换几次。



例如:



tabcontrol1.selectedindex = 5''索引5是带有网格的选项卡

tabcontrol1。 selectedindex = 0''加载时默认选项卡

tabcontrol1.selectedindex = 5

tabcontrol1.selectedindex = 0
I also encountered the same issue.
I noticed that selecting the tab a couple of times on which the grid is present enables to check the checkbox on the grid. So if that tab is not your default tab while loading the form, you can switch it a couple of times between the default tab and the tab with the grid by assigning the index of both the tabs.

eg:

tabcontrol1.selectedindex=5 ''index 5 is the tab with the grid
tabcontrol1.selectedindex=0 ''default tab on load
tabcontrol1.selectedindex=5
tabcontrol1.selectedindex=0


这篇关于无法在TabControl中将DataGridViewCheckboxCell设置为DataGridView中的Checked的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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