foreach(DataGridViewRow row in dataGridView1.Rows) { foreach (DataGridViewCell cell in row.Cells) { if (row.Cells[7].Value != null) { row.Cells[4].Value = null; }
foreach (DataGridViewCell cell in row.Cells)
foreach(DataGridViewRow row in dataGridView1.Rows)
foreach(DataGridViewRow row in dataGridView1.Rows) { if (row.Cells[6].Value != null) { row.Cells[3].Value = null; } }
if (row.Cells[6].Value != null)
!= null
if (row.Cells[6].Value != null) { if ((bool)row.Cells[6].Value) { row.Cells[3].Value = null; } }
bool
(bool)row.Cells[6].Value
if ((int)row.Cells[6].Value > 0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)