I used to use the mod function in asp to figure out the following while looping through rows in a dataset to display a matrix style grid of products:
if n mod 3 = 0 then
//start a new row
//continue adding table cells
How can I acheive this same kind of thing in c# for my asp.net page? I'm displaying a list of products 3 across and so I want to know when I'm on every third one in my for each...
does that make sense? thanks in advance!