Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to get the value from a DataGridViewCheckBoxCell
i have tried various codes

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


also

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


also using
VB
ctype
and
VB
cbool
and
VB
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

1 solution

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



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