StackPanel tSp = new StackPanel(); DataGrid taxRateDataGrid = new DataGrid(); DataGridTextColumn col0 = new DataGridTextColumn(); DataGridTextColumn col1 = new DataGridTextColumn(); DataGridCheckBoxColumn col2 = new DataGridCheckBoxColumn(); taxRateDataGrid.Columns.Add(col0); taxRateDataGrid.Columns.Add(col1); taxRateDataGrid.Columns.Add(col2); col0.Binding = new Binding("Rate"); col1.Binding = new Binding("Mark"); col2.Binding = new Binding("isChecked"); col0.Header = "Stawka"; col1.Header = "Oznaczenie"; col2.Header = "Status"; taxRateDataGrid.Items.Add(new TaxRateFromDatabase { Rate = 1, Mark = "E", IsChecked = true}); taxRateDataGrid.Items.Add(new TaxRateFromDatabase { Rate = 23, Mark = "F", IsChecked = false });