How to add <br> in string after counting particular characters
<p>I want to display description of product in gridview, but i want to display only 15 characters on one line, I want to break it after 15 characters, I have written countchar function as follows:</p>

<pre><code>public int CountChars(string value)
{

    bool lastWasSpace = false;

    foreach (char c in value)
    {
        result++;
        lastWasSpace = false;
    }
    return result;
}
</code></pre>

<p>and called function as:</p>

<pre><code>string description="sdfsdfsd sdfsdf sdfsdf asdfsa dfsda safsaf sdfdf sdfs sdfsdf sdff sdf ";

CountChars(description);
</code></pre>

<p>And i want to check:</p>

<pre><code>if(result&gt;15)
{
 after every 15 characters i want to break the line. 
}
</code></pre>

<p>Please tell me how to do this.</p>
