Hi @HDeveloper2021 ,
I suggest you could do like this:
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
@for (var i = 0; i < Model.Count(); i += 3)
int j = 0;
for (; j <= 2 && i + j < Model.Count(); j++)
@Model[i + j].testId
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.