Post: Datagridview checkboxcolumns
10-21-2015, 11:56 AM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Hey all. After much searching i am still none-the-wiser. I have a dgv with the usual client #/name and then i have checkbox columns for noclip and godmode.
I have the following for the godmode box (using message boxes for testing for now)
(adsbygoogle = window.adsbygoogle || []).push({});
10-21-2015, 12:00 PM #2
seanhellen
Are you high?
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
foreach (DataGridViewRow row in dataGridView1.Rows)
{
if ((bool)row.Cells[3].Value == false)
{
if (e.ColumnIndex == 2)
{
MessageBox.Show("clicked");
}
}
else
{
MessageBox.Show("un-clicked");
}


This gives me a nullexception and i have no idea where to go from here. The annoying thing is that mango managed to get it working...but then (like an idiot) i changed my mind and didnt implement it...now i want it again but i cant get hold of him.

I have looked on youtube and posted on stackoverflow but still no good. Any ideas?


P.s. Sorry, pressed the wrong button and couldnt figure out how to edit my 1st post on the app...
10-22-2015, 11:27 AM #3
Hash847
Purple God
Originally posted by seanhellen View Post
Hey all. After much searching i am still none-the-wiser. I have a dgv with the usual client #/name and then i have checkbox columns for noclip and godmode.
I have the following for the godmode box (using message boxes for testing for now)


If you still require help add me @NGUWinter on Skype.
10-23-2015, 03:51 AM #4
Originally posted by Winter View Post
If you still require help add me @NGUWinter on Skype.


Take a look at the second post :p
I'm too stupid to help :|

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo