title: WebGrid ActionLink how to get row object
body: <p>I have WebGrid which is build using Model I build it using code below:</p>
  
  <p>View</p>
  
  <pre><code>@model IEnumerable&lt;ExampleMVC4.Models.LicenseInfo&gt;
  @{
      ViewBag.Title = "Licenses";
      WebGrid grid = new WebGrid(Model);    
  }
  &lt;h2&gt;Licenses&lt;/h2&gt;
  @grid.GetHtml(tableStyle: "table table-striped table-hover",
    columns: new[] {
      grid.Column("SerialNumber"),                                   
      grid.Column("Name"),
      grid.Column("Organization"),
      grid.Column("Email"),
      grid.Column("DateActivated"),
      grid.Column(header: "IsValid", format: item=&gt;new HtmlString(Html.ActionLink((string)item.IsValid.ToString(), "Deactivate", new { @id =  item.SerialNumber} ).ToString()))
    })
    &lt;p&gt;@ViewBag.Message&lt;/p&gt;
  </code></pre>
  
  <p>Control</p>
  
  <pre><code>public ActionResult Index()
  {
      var data = getLicenseInfoList();
      return View(data);
  }
  
  [HttpPost]
  public ActionResult Deactivate(string serialNum_)
  {
      if (serialNum_ != null)
      {
          ViewBag.Message = serialNum_;
      }
      return View();
  }
  </code></pre>
  
  <p>But I am unable to get it to call <code>Deactivate()</code> function with serial number.</p>
  
  <p>What is the proper way to handle <code>ActionLink</code> click inside <code>WebGrid</code>?</p>