I have an issue. I am trying to fill datagrid with data.
<DataGrid x:Name="dataGrid" HorizontalAlignment="Left" Margin="54,74,0,0" VerticalAlignment="Top" Width="347" Height="206" />
I do load the data from database and add them to the grid like that?
List<Employee> employees= Modules.OleDatabase.loadEmployeesInside();
foreach (var empl in employees)
{
Debug.WriteLine(empl.Person_number);
dataGrid.Items.Add(empl);
}
But I just get this output in grid: 
Althougt all the data is definetly loaded right. Output in debug:
I did try using
ObservableCollection<Employee>
instead of list as well, but the same output. Can someone help me please?
My Employee class
public class Employee
{
public int Person_number;
public string Status, Name, Surname;
}
I did binding now
<DataGrid x:Name="dataGrid" HorizontalAlignment="Left" Margin="54,74,0,0" VerticalAlignment="Top" Width="347" Height="206">
<DataGrid.Columns>
<DataGridTextColumn Width="*" Header="Person_number" Binding="{Binding Person_number}" />
<DataGridTextColumn Width="*" Header="Status" Binding="{Binding Status}" />
<DataGridTextColumn Width="*" Header="Name" Binding="{Binding Name}" />
<DataGridTextColumn Width="*" Header="Surname" Binding="{Binding Surname}" />
</DataGrid.Columns>
</DataGrid>

