Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi
Unable to set DataGridViewCheckboxCell to Checked in DataGridView in a TabControl

Please tell the solution.
Posted

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900