Has anyone received an explanation of what is happening? Changing code 1 to code 2 fixes the problem, although theoretically there should be no difference. (Theory gets into practice like a pumpkin striking a brick wall).
Code 1:
OutputDataGridView.DataSource = myList;
Code 2:
OutputDataGridView.DataSource = null; OutputDataGridView.DataSource = myList;
c # datagridview
Larry watanabe
source share