Advertisement
_CodeBehind

пави

Jun 6th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. foreach (DataGridViewRow row in this.dataGridView1.Rows)
  2. {                            
  3.     foreach (DataGridViewCell cell in row.Cells)
  4.     {
  5.         if (cell.Size.IsEmpty)
  6.         {
  7.             continue;
  8.         }
  9.         MessageBox.Show(cell.Value.ToString());
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement