Guest User

Untitled

a guest
Jun 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
  2. {
  3. bool nullCell = false;
  4. for (int j = 0; j < dataGridView1.Rows.Count; j++)
  5. {
  6. for (int i = 0; i < dataGridView1.Rows[j].Cells.Count; i++)
  7. {
  8. if (dataGridView1.Rows[j].Cells[i].Value == null)
  9. {
  10. nullCell = true;
  11. }
  12. }
  13. }
  14. if (!nullCell)
  15. {
  16. button3.Enabled = true;
  17. }
  18. }
Add Comment
Please, Sign In to add comment