title: WebGrid is returing an error "Column does not exist"
body: <p>I have the following web grid inside my Razor view on asp.net MVC 5 and i am using Entity framework 6.0:-</p>
  
  <p>Now the web grid is working well on all the paging except for one paging, and when i checked it i found that the <code>WebGrid</code> will return this error:-</p>
  
  <blockquote>
    <p>Column "SDUser.Department.Definition.DEPTNAME" does not exist.</p>
  </blockquote>
  
  <p>So seems some items inside this page does not have those navigation properties <code>SDUser.Department.Definition.DEPTNAME</code>,, so how i can overcome this issue?</p>
  
  <p><strong>EDIT:-</strong> Here is my updated code, where i added If/Else but still i am getting the same error:-</p>