
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
foreach (DataGridViewRow row in dataGridView1.Rows)
{
if (row.Cells[5].Value != null)
{
if ((bool)row.Cells[5].Value == true)
{
MessageBox.Show("Success", "Hang On", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
}


private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
foreach (DataGridViewRow row in dataGridView1.Rows)
{
if (row.Cells[5].Value != null)
{
if ((bool)row.Cells[5].Value == true)
{
MessageBox.Show("Success", "Hang On", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
}

dataGridView1.Rows[0].Cells[6].Value = "Kill";
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (dataGridView1.IsCurrentCellDirty) //So it wont throw exception
dataGridView1.CommitEdit(DataGridViewDataErrorContexts.Commit);
}
private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
//Shit here
if (done)
MessageBox.Show(dataGridView1.CurrentRow.Index.ToString());
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.