Click here to Skip to main content
13,043,898 members (47,223 online)
Rate this:
Please Sign up or sign in to vote.
I want to get the value from a DataGridViewCheckBoxCell
i have tried various codes

DataGridView1.Item(1, i).Value = False Then


DataGridView1.rows(i).cells(1).Value = False Then

also using

When i got into debug, when i move the mouse cursor over the .value, it returns "Nothing"

it is necessary to get the proper boolean value which it wont return... do i have to change any settings of the checkboxcell at designtime?
Posted 20-Mar-13 1:43am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It depends on weather your checkbox is in a checkboxfield or a template field. This page has more info.
Shraa1 20-Mar-13 10:26am
i did not get much help from the forum... i tried on msdn directly... found a good search result there... just changed the event and it did the trick...
Shraa1 20-Mar-13 10:26am
Thanx anyway :)

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 20 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100