i am trying to check the datagridview cells for empty and null value... but i can not do it right...
for (int i = 0; i < dataGridView1.Rows.Count; i++) {
for (int i = 0; i < GV1.Rows.Count; i++) { if ((String)GV1.Rows[i].Cells[4].Value == null) { MessageBox.Show(" cell is empty"); return; } }
It's working fine.