title: Bind Data Grid View from two tables using Entity framework
body: <p>I am working on a Windows Forms Application and am using C#, entity framework. i have two tables in database battalion and brigtype . REALATION BETWEEN THEM USING ID .</p>
  <p>i am trying to show those two tables in data grid view but one of them only appears. Here is the code I tried :       '''</p>
  <pre><code> private void PopulateDataGridView()
      {
          
          using (Data.battdbEntities db = new Data.battdbEntities())
          {
              dgv.AutoGenerateColumns = true;
              dgv.DataSource = db.battalions.ToList();
          }
       }
  </code></pre>
  <p>'''</p>