Populating a table with alphabetized people names
<p>I am dynamically creating a table on the client side and populating it with a list of peoples names.</p>

<pre><code>sbData.Append("&lt;table&gt;");
    int iColumnCounter = 1;
    sbData.Append("&lt;tr&gt;");

    foreach (int _iPerId in lsiPeople)
    {
        if (iColumnCounter == 5)
        {
            iColumnCounter = 1;
            sbData.Append("&lt;/tr&gt;&lt;tr&gt;");
        }

        string sName = GetPersonName(_iPerId);
        DropDownList_Student.Items.Add(new ListItem(sName, _iPerId.ToString()));
        sbData.AppendFormat("&lt;td&gt;&lt;input class=\"studentCheckBox\" type=\"checkbox\" onClick=\"UpdateSelectedCounter()\" id={0} name=\"{1}\" value={0}&gt;{1}&lt;/td&gt;", _iPerId, sName);
        iColumnCounter++;
    }

    sbData.Append("&lt;/tr&gt;");
    sbData.Append("&lt;/table&gt;");
</code></pre>

<p>The names are already sorted in alphabetical order but it as you can see this will enter them in left to right jumping a column. When when it gets to 4 columns it will go to the next row.</p>

<p>I want it to go, top to bottom in a column, then to the next column so it will be like</p>

<pre><code>______
|A|C|L|
|A|F|N|
|C|K|N|
</code></pre>

<p>Imagine these letters are the first letter of the persons second name.</p>
