D
D
Dmitry Gavrilenko2016-11-12 11:48:39
.NET
Dmitry Gavrilenko, 2016-11-12 11:48:39

Why doesn't the DataGridView display the DataSource?

Briefly speaking

DataGridView.AutoGenerateColumns = true;
DataGridView.DataSource = BindingSource.DataSource = List<myObject>;

I add to the List, (DataGridView and BindingSource). DataSource is also updated, but the data is not displayed. List is initially empty.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Silin, 2016-11-12
@byme

I've seen at least 4 such questions, google first... ObservableCollection
will help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question