@for (int i = 0; i < Model.Count; i++) { if (i > 0 && i % 4 == 0) { @: } @Model[i].Name @Model[i].Designation Source: stackoverflow.com