title: How to form query string?
body: <p>I am using the grid source code from this website:</p>
  
  <p><a href="http://gridmvc.azurewebsites.net/" rel="nofollow noreferrer">http://gridmvc.azurewebsites.net/</a></p>
  
  <p>but I don't understand how the query string is formed for his custom columns. On the link I have provided there is an edit column, if you hover over the link you can see the hyperlink with the query string ID. I have used this source code but there is no query string for me.</p>
  
  <p><strong>Controller code</strong></p>
  
  <pre><code> #region PartialViews
          [ChildActionOnly]
          public ActionResult RenderGrid()
          {
              DataLayer.RepositoryClient RC = new RepositoryClient();
              var People = RC.GetPeople();
              return PartialView("~/Views/Client/PartialViews/P_PersonGrid.cshtml", People);
          }
  
   #endregion
  </code></pre>
  
  <p>I get a list of people from entity framework. Then I use a list of models in my partial view.</p>
  
  <p><strong>Partial view</strong></p>
  
  <pre><code>@model List&lt;Models.modelPeopleGrid&gt;
  @using GridMvc.Html
  
  @{
      ViewBag.Title = "Person records";
  }
  &lt;div&gt;
   @Html.Label("Search for person")
      &lt;input type="text" onkeyup="activateSearch()" id="txtSearch" style="width:150px";/&gt;
  &lt;/div&gt;
  
  &lt;div class="grid-wrap" style="float:left"&gt;
      @Html.Grid(Model).Named("peopleGrid").Columns(columns =&gt;
      {
          columns.Add(m =&gt; m.Firstname).Titled("Firstname").Filterable(true);
          columns.Add(m =&gt; m.Surname).Titled("Surname").Filterable(true);
          columns.Add(m =&gt; m.DateOfBirth).Titled("DateOfBirth").Filterable(true);
          columns.Add(m =&gt; m.Address).Titled("Address").Filterable(true);
          columns.Add(m =&gt; m.Borough).Titled("Borough").Filterable(true);
          columns.Add(m =&gt; m.PersonID).Encoded(false).Sanitized(false).SetWidth(30).RenderValueAs(
                  @&lt;b&gt;
                      @Html.ActionLink("Edit person details", "EditPerson", "Index")
                  &lt;/b&gt;);
          columns.Add()
              .Encoded(false)
              .Sanitized(false)
              .SetWidth(30)
              .RenderValueAs(m =&gt;
                  @&lt;b&gt;
                      @Html.ActionLink("Add/remove claims", "EditClaim", "Index")
                  &lt;/b&gt;);
      }).WithPaging(20)
  &lt;/div&gt;
  
  &lt;div class="rowValues" style="float:right"&gt;&lt;/div&gt;
  
  
  &lt;script&gt;
      $(function () {
          pageGrids.peopleGrid.onRowSelect(function (e) {
              $(".rowValues").html(
                  "&lt;h4&gt;Full details of person:&lt;/h4&gt;" +
                  "Firstname: " + e.row.Firstname + "&lt;br /&gt;" +
                  "Surname: " + e.row.Surname + "&lt;br /&gt;" +
                  "DateOfBirth: " + e.row.DateOfBirth + "&lt;br /&gt;" +
                   "Address: " + e.row.Address + "&lt;br /&gt;" +
                    "Borough: " + e.row.Borough + "&lt;br /&gt;"
                  );
          });
      });
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  
      function activateSearch() {
          var value = $("#txtSearch").val();
  
          $.ajax({
              url: "Client/GetPeople",
              dataType: 'html',
              type: "GET",
              data: { Name: value },
              success: function (data) {
                  $('.webgrid').empty().html(data);
              },
              error: function () {
                  alert("error");
              }
          });
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I don't know how to get a query string formed for this line of code:</p>
  
  <pre><code> columns.Add(m =&gt; m.PersonID).Encoded(false).Sanitized(false).SetWidth(30).RenderValueAs(
                      @&lt;b&gt;
                          @Html.ActionLink("Edit person details", "EditPerson", "Index")
                      &lt;/b&gt;);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/OwLou.png" alt="enter image description here"></p>
  
  <p>I tried html object attributes as the fourth parameter of actionlink but I was getting a red swiggly for some reason.</p>
  
  <p>Anyone know how to answer my problem?</p>