TypeScript
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
// Column 0 is the Checkbox column that I need.
if (e.ColumnIndex == 0)
{
// This gets the Checkbox cell.
DataGridViewCheckBoxCell cell = (DataGridViewCheckBoxCell)fileGrid.Rows[e.RowIndex].Cells[0];
// Always displays True.
MessageBox.Show((cell.Value == null) + "");
}
}
Paul3 reputationPosted Jun 14, 2007, 4:09 PM EDT