Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: checkbox VB.NET DataGridView , +
I want to get the value from a DataGridViewCheckBoxCell
i have tried various codes
 
DataGridView1.Item(1, i).Value = False Then
 
also
 
DataGridView1.rows(i).cells(1).Value = False Then
 
also using
ctype
and
cbool
and
convert.boolean
...
 
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 2:43am
Shraa1126

1 solution

Rate this: bad
good
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.
http://forums.asp.net/t/1023839.aspx
  Permalink  
Comments
Shraa1 at 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 at 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
0 Zoltán Zörgő 320
1 CHill60 165
2 BillWoodruff 120
3 Peter Leow 120
4 bling 80
0 Sergey Alexandrovich Kryukov 9,423
1 OriginalGriff 6,891
2 Peter Leow 4,637
3 Zoltán Zörgő 4,304
4 CHill60 2,932


Advertise | Privacy | Mobile
Web03 | 2.8.150129.1 | Last Updated 20 Mar 2013
Copyright © CodeProject, 1999-2015
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