title: Asp.net partial view doesn't work
body: <p>Main view:</p>
  
  <pre><code>@model BTGHRM.Models.EmployeeOverallReport
  @{
      Layout = "~/Views/Shared/_EmployeeMain.cshtml";
  }
  
  @foreach (var item in Model.ListOfPersonalData)
  {
      Html.Partial("Partial/_EmployeeOverallReportList", item);
      &lt;br/&gt;
  }
  </code></pre>
  
  <p>MyPartial:</p>
  
  <pre><code>@model BTGHRM.Models.PersonalData
  @{
  WebGrid grid = new WebGrid(Model.ListOfWorkData, canSort: false, rowsPerPage: 15);
  }
  
  @Html.Label(Model.FirstName)
  @Html.Label(Model.LastName)
  @Html.Label(Model.Appointment)
  @Html.Label(Model.Division)
  
  @if (Model.ListOfWorkData.Any())
  {
  @grid.GetHtml(
          tableStyle: "table",
          headerStyle: "table_HeaderStyle",
          footerStyle: "table_PagerStyle",
          rowStyle: "table_RowStyle",
          alternatingRowStyle: "table_AlternatingRowStyle",
          selectedRowStyle: "table_SelectedRowStyle",
          columns: grid.Columns(
              grid.Column("ProjectName", @Resources.Localization.project, format: @&lt;text&gt;
                  &lt;span class="display-mode"&gt;&lt;label id="ProjectNameLabel"&gt;@item.ProjectName&lt;/label&gt;&lt;/span&gt;
              &lt;/text&gt;, style: "p60"),
              grid.Column("Activity", @Resources.Localization.activity, format: @&lt;text&gt;
                  &lt;span class="display-mode"&gt;&lt;label id="ActivityLabel"&gt;@item.Activity&lt;/label&gt;&lt;/span&gt;
              &lt;/text&gt;, style: "p60"),
              grid.Column("ProjectEndDate", @Resources.Localization.start_date, format: @&lt;text&gt;
                  &lt;span class="display-mode"&gt;&lt;label id="ProjectStartDate"&gt;@item.ProjectStartDate&lt;/label&gt;&lt;/span&gt;
              &lt;/text&gt;, style: "p60"),
              grid.Column("ProjectEndDate", @Resources.Localization.end_date, format: @&lt;text&gt;
                  &lt;span class="display-mode"&gt;&lt;label id="ProjectEndDate"&gt;@item.ProjectEndDate&lt;/label&gt;&lt;/span&gt;
              &lt;/text&gt;, style: "p60")
          )
  )
  }
  </code></pre>
  
  <p>My models:</p>
  
  <pre><code>public class EmployeeOverallReport
  {
      //DataBlock:
      public bool PersonalDataPartBool { get; set; }
      public List&lt;PersonalData&gt; ListOfPersonalData { get; set; }
      //ColumnsNeeded:
      public bool EmployeeIdBool { get; set; }
      public bool FirstNameBool { get; set; }
      public bool LastNameBool { get; set; }
      public bool AppointmentBool { get; set; }
      public bool DivisionBool { get; set; }
  
      //DataBlock:
      public bool WorkDataPartBool { get; set; }
      public bool ProjectWorkerIdBool { get; set; }
      public bool ProjectIdBool { get; set; }
      public bool ProjectNameBool { get; set; }
      public bool ActivityBool { get; set; }
      public bool ProjectStartDateBool { get; set; }
      public bool ProjectEndDateBool { get; set; }
  
  }
  
  public class PersonalData
  {
      //Not all
      public List&lt;WorkData&gt; ListOfWorkData { get; set; }
      public int EmployeeId { get; set; }
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public string Appointment { get; set; }
      public string Division { get; set; }
      //And more
  }
  
  public class WorkData
  {
      public int WorkerId { get; set; }
      public int ProjectId { get; set; }
      public string ProjectName { get; set; }
      public string Activity { get; set; }
      [DisplayFormat(DataFormatString = "{0:dd MMM yyyy}")]
      public DateTime? ProjectStartDate { get; set; }
      [DisplayFormat(DataFormatString = "{0:dd MMM yyyy}")]
      public DateTime? ProjectEndDate { get; set; }
  }
  </code></pre>
  
  <p>Bool properties are made for sorting purposes and they are not in use now. The problem is that this code returns literally nothing:</p>
  
  <p><a href="https://i.stack.imgur.com/TP4WE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TP4WE.png" alt="enter image description here"></a></p>
  
  <p>However it returns brakes and in tracing mode all models have correct data and i am able to get inside the grid with breakpoints.</p>