Поэтому я делаю цикл, как показано ниже
Код: Выделить всё
for (int i = 0; i < totalColumnToShow; i++)
{
var page = i + 1;
var skip = rowsPerColumn[i] * (page - 1);
PagedList =GroupedLinksCategory.Select(y => new copiedList { Title = y.Title, ID = y.ID, Name= y.Name }).Skip(skip).Take(rowsPerColumn[i]).ToList();
foreach (var row in PagedList)
{
if (row.Name== "Test")
{
//my Logic
}
else
{
//my Logic
}
}
}
Код: Выделить всё
rowsPerColumn[0] = 5
rowsPerColumn[1]= 5
rowsPerColumn[2] = 5
rowsPerColumn[3]= 4Подробнее здесь: https://stackoverflow.com/questions/345 ... ng-in-list