title: Limited size in grid view column(truncate string length)
body: <p>This is My grid view coding i want menu name truncate length baseed. 
  
     </p>
  
  <pre><code>&lt;asp:BoundField DataField="MenuName" HeaderText="MenuName" TruncateLegnth="6" /&gt;
   &lt;asp:BoundField DataField="Url" HeaderText="Url" /&gt;
    &lt;asp:BoundField DataField="Tooltip" HeaderText="Tooltip" /&gt;
  </code></pre>
  
  <p>
      </p>
  
  <p>Previously i am using dynamic value set</p>
  
  <p>protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
          {
              int i = 0;</p>
  
  <pre><code>        if (e.Row.RowType == DataControlRowType.DataRow)
          {
              foreach (TableCell cell in e.Row.Cells)
              {
                  i++;
                  string Word = cell.Text;
  
  
                  if (cell.Text.Length &gt; 5 &amp;&amp; (i == 1))
                      cell.Text = cell.Text.Substring(0, 5) + "....";
  
                  if (cell.Text.Length &gt; 3 &amp;&amp; (i == 3))
                      cell.Text = cell.Text.Substring(0, 3) + "....";
                  if (cell.Text.Length &gt; 6 &amp;&amp; (i == 2))
                      cell.Text = cell.Text.Substring(0, 6) + "....";
                  cell.ToolTip = Word;
              }
          }
  
  
      } 
  </code></pre>
  
  <p>Now i need TruncateLegnth based column.</p>