I need to populate a .net DataGridView from a collection physically (without data binding) in C#. That is, I should use foreach loops and iterate through the collection while creating a row for each object and a cell for each property.
I have created the columns in design mode. Now I need to create rows dynamically.
How to do that?