Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. for each (Tenants^ t in tenants)
  2. {
  3. DataGridViewRow^ row = gcnew DataGridViewRow();
  4. row->CreateCells(dataGridView1);
  5. row->Cells[0]->Value = t->companyName;
  6. row->Cells[1]->Value = t->roomNr;
  7. row->Cells[2]->Value = t->start;
  8. row->Cells[3]->Value = t->end;
  9. row->Cells[4]->Value = t->rentPrice;
  10. row->Cells[5]->Value = t->paymentType;
  11.  
  12. dataGridView1->Rows->Add(row);
  13. }
  14. int k = tenants->Count;
  15. std::cout << k << std::endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement