VS05 - DataGridView - CheckBox

  • Thread starter Thread starter michael schindler
  • Start date 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
 
My Solution

Thanks


MessageBox.Show(dataGridView.Rows[4].Cells[1].Value.ToString());
 
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());
 
Back
Top