title: Limiting the number of characters shown in a Boundfield for gridview
body: <p>I have a gridview that shows a user's name, a subject, and a date. The .aspx code looks like this:</p>
  
  <pre><code>      &lt;asp:BoundField DataField="UserName" 
              SortExpression="UserName" /&gt;
          &lt;asp:BoundField DataField="Subject" 
              SortExpression="Subject" /&gt;
          &lt;asp:BoundField DataField="Date" 
              SortExpression="Date" /&gt;
  </code></pre>
  
  <p>If the user enters a subject that is say 200 characters, I don't want it to all show otherwise the page will be stretched like crazy. Is there any way to do a check so that if the subject is more than say 60 characters, the rest is taken off and a ... is just appended on? So the subject would go from say:</p>
  
  <p>This is a realllllllllllllllllllllllly long subject</p>
  
  <p>to </p>
  
  <p>This is a reallllll....</p>
  
  <p>I know how to do it in the C# code behind but not sure how to manipulate it in the .aspx</p>