[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

Untick checkbox in datagridview cell

Hi ,

Im stuck on reseting a checkbox in a datagridview in win app

I tried
Me.DataGridView4.Item("B", DGV4).Value = 0
Me.DataGridView4.Item("B", DGV4).Value = False

it dosent work

Please help
0
MichMat
Asked:
MichMat
  • 5
  • 3
1 Solution
 
JackOfPHCommented:
Me.DataGridView1.Rows(dgv4).Cells("B").value = false
0
 
JackOfPHCommented:
Me.DataGridView4.Rows(dgv4).Cells("B").value = false
0
 
JackOfPHCommented:
Try checking also if the column is not readonly...
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
MichMatAuthor Commented:
Its a curious thing .......

I used this code
Me.DataGridView4.Rows(DGV4).Cells("B").Selected = False

It works for the program in as much as the process says that the value of the box is false HOWEVER the box remains checked in the grid , so looking at it from users pointof view nothing happened but the value was changed. Infact if I click on it again the code behaves as if I selected the box as true yet NOW the checkbox is unticked ........
0
 
JackOfPHCommented:
Did you try this?
Me.DataGridView4.Rows(dgv4).Cells("B").value = false
0
 
MichMatAuthor Commented:
yes I did did not work
0
 
JackOfPHCommented:
Does allow edit of the grid is set to true?
0
 
MichMatAuthor Commented:
my problem was somwhere else the solution worked
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now