title: MVC WebGrid with dynamic link text
body: <p>I have a WebGrid that looks like the following - </p>
  
  <pre><code>@grid.GetHtml(columns: grid.Columns(
              grid.Column(
                  format: (item) =&gt; new HtmlString(Html.ActionLink("MyOrderNumber", "Index", new { ordernumber = item.OrderNumber }).ToString()
              )
          )
      ))
  </code></pre>
  
  <p>This creates links in the grid with the link text of "MyOrderNumber".</p>
  
  <p>Instead of the link text being "MyOrderNumber", I want the text to be the dynamically generated <code>item.OrderNumber</code>. But when I put <code>item.OrderNumber</code> in place of "MyOrderNumber" I get the compilation error - <code>The best overloaded method match for WebGrid.Column(string, string, System.Funct&lt;dynamic, object&gt;, string, bool)</code></p>
  
  <p>How can I make the link text be the dynamically generated <code>item.OrderNumber</code>?</p>