title: How to post data to controller from ASP.NET MVC Form and Webgrid
body: <p>I am new to ASP.NET MVC. I need some help for the following scenario.
  I have defined a model like this</p>
  
  <pre><code>namespace Sample.Models
  {
      public class ContModel
      {
          [Display(Name = "Name")]
          public string Name { get; set; }
  
          [Display(Name = "Code")]
          public string Code { get; set; }
  
          [Display(Name = "Customer")]
          public string Customer { get; set; }
  
          public List&lt;Orders&gt; Orders_ { get; set;}
      }
  
      public class Orders
      {
          public string OrderId;
          public string OrderDesc;
      }
  }
  </code></pre>
  
  <p>In my view, I'm showing name, code, customer using <code>Html.EditorFor</code>, and I would like to use a Webgrid for getting input for Orders.</p>
  
  <p>These three fields along with rows entered in Webgrid to be posted to the controller.</p>
  
  <p>Initially the data source for Webgrid will be blank, User should be able to enter rows in the Webgrid. I have tried multiple approaches, not succeeded.</p>
  
  <p>Please provide some approaches/guidance to achieve this. Thanks in advance.</p>