VS05 - DataGridView - CheckBox

  • Thread starter michael schindler
  • Start date
M

michael schindler

hi there

i have tried do use the new DataGridView of the Framework 2.0. i use the new
DataGridViewCheckBoxColumn
Somehow i don't know how to read if a checkbox is checked or not.
For example in the DataGridView i have several Ccheckbox-Columns and i tried
to access those values after the event datagrid_click.
does anyone know how to do this?

in the oild datagrid i used to access columns like this through
datagrid1[myRowNumber,myColumnNumber] = true; this does not work anymore.
what is the best my to get to know if a checkbox in a datagridcolum is
checked or not?

thank you very much for your help
 
M

michael schindler

My Solution

Thanks


MessageBox.Show(dataGridView.Rows[4].Cells[1].Value.ToString());
 
Joined
Feb 20, 2006
Messages
1
Reaction score
0
I tried this one , but it is not working.. Its giving me error as "Object Reference is not set" I tried in the DataGridView_clickEvent

Any ideas???????????????????????????????????????????? I am using C# 2005 version Windows Appln


michael schindler said:
My Solution

Thanks


MessageBox.Show(dataGridView.Rows[4].Cells[1].Value.ToString());
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top