Answer the question
In order to leave comments, you need to log in
DataGrid WPF: 'EditItem' is not allowed for this view?
Good day.
I have a DataGrid on a form, it does not know in advance how many columns, they are added by a button. And there should be a fixed number of rows - 6. I add them as follows (I did not find another way):
And the columns are added like this:dataGrid.Items.Add(new object());
dataGrid.Columns.Add(new DataGridComboBoxColumn()
{
ItemsSource = _list;
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question