Wpf DataGrid only showing empty rows
<p>so  i am working on the app which retrieves data from the database and i want to display it in DataGrid with custom columns which i created.</p>

<p>XAML:</p>

<pre><code>&lt;DataGrid x: Name = "dataGridAddedAgents" Grid.Column = "0" Grid.ColumnSpan = "7"  ItemsSource = "{Binding}"  HorizontalAlignment = "Stretch" Margin = "10,0" Grid.Row = "3" VerticalAlignment = "Top" AutoGenerateColumns = "False"  IsReadOnly = "True" &gt;
&lt;DataGrid.Columns&gt;            
    &lt;DataGridTextColumn Binding = "{Binding Path=Id}"  Width = "0.25*"  Header = "Id" CanUserResize = "False" CanUserReorder = "False" Foreground = "{x:Null}" /&gt;                    
    &lt;DataGridTextColumn Binding = "{Binding Path=FirstName}" Width = "0.15*"  Header = "First name" CanUserResize = "False" CanUserReorder = "False" Foreground = "{x:Null}" /&gt;                                         
    &lt;DataGridTextColumn Binding = "{Binding Path=LastName}" Width = "0.15*"  Header = "Last name" CanUserResize = "False" CanUserReorder = "False" Foreground = "{x:Null}" /&gt;                                                     
    &lt;DataGridTextColumn Binding = "{Binding Path=Email}"  Width = "0.20*"  Header = "Email" CanUserResize = "False" CanUserReorder = "False" Foreground = "{x:Null}" /&gt;                                                               
    &lt;DataGridTextColumn Binding = "{Binding Path=Username}"  Width = "0.15*" Header = "Username" CanUserResize = "False" CanUserReorder = "False" Foreground = "{x:Null}" /&gt;                        
    &lt;DataGridTextColumn Width = "0.10*" ClipboardContentBinding = "{x:Null}" Header = "Remove" CanUserResize = "False" CanUserReorder = "False" Foreground = "{x:Null}" /&gt;                                                                                     
&lt;/DataGrid.Columns&gt;                                                                  
&lt;/DataGrid&gt;
</code></pre>

<p>and here is c# code where i try to put data into DataGrid </p>

<pre><code>response = await client.GetAsync("api/user/agents");
        listOfAgents = await response.Content.ReadAsAsync&lt;ICollection&lt;ApplicationUserModel&gt;&gt;();                        
        dataGridAddedAgents.ItemsSource = listOfAgents;
</code></pre>

<p>I have check with debugger and i load data correctly into listOfAgents. When i run program DataGrid shows correct number of rows but all cells are empty.</p>

<p>edit:</p>

<pre><code> public class ApplicationUserModel
{
    public string Id { get; set; }
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public string GuestIdentification { get; set; }
    public string Email { get; set; }
    public string Username { get; set; }
    public string Password { get; set; }
}
</code></pre>

<p>Class ApplicationUserModel looks like this. i use it too write into database and it works
Soulutin:</p>

<p>removing Foreground = "{x:Null}" from columns in DataGrid fixed it. thanks @mm8 for the help</p>