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 .
i am trying to show those two tables in data grid view but one of them only appears. Here is the code I tried : '''
private void PopulateDataGridView()
{
using (Data.battdbEntities db = new Data.battdbEntities())
{
dgv.AutoGenerateColumns = true;
dgv.DataSource = db.battalions.ToList();
}
}
'''