title: MVC grid sorting - customise links
body: <p>I am using the Sort method of the MvcContrib Grid to generate sorting links, e.g.     </p>
  
  <pre><code>&lt;%= Html.Grid(Model).AutoGenerateColumns().Sort((GridSortOptions)ViewData["sort"]) %&gt;
  </code></pre>
  
  <p>I have a need to change the default controller/action that’s generated  by the sort method. For example,  </p>
  
  <pre><code>defaultControllerName/defaultActionName/?Column=ProductId&amp;Direction=Ascending  
  </code></pre>
  
  <p>would change to</p>
  
  <pre><code>customControllerName/customActionName/?Column=ProductId&amp;Direction=Ascending  
  </code></pre>
  
  <p>I haven't been able to find any existing methods in the MVCcontribution classes that would allow me to customise the links. I’d appreciate any pointers on how to go about altering the default links as I’m still very much a MVC/C# newbie. </p>