The documentation for the DataGridView is available at;
MSDN - DataGridView Class
[
^]
By reading this you can learn about the control, the available constructors, methods, properties and events. The documentation will typically contain examples and "how-to" information
This is how you learn to become a developer - by reading and learning.
Please don't think I am being rude or nasty but the saying
if you give a man a fish... is how most developers will see this question.
Making a loop is not hard - link to documentation;
for Keyword (C# Reference)[
^] - you need an
initializer, a
condition and an
iterator
You should therefore using something like;
for(int initializer = 0; initializer < myGrid.<Property>; initializer++)
{
}
Kind Regards