G
Guest
I have a DataGridView which I have configured a set of columns and their fill
weights in the designer. Also, I have specified a DataPropertyName for each
column. I programmatically create a BindingSource to hold a set of objects
that I want to display in the DataGridView. I then assign the BindingSource
as the DataSource of the grid view.
The binding works ok and the data displays in the grid view. However, it
will randomly (?) rearrange a column in the grid view. So if my columns were
1, 2, 3, 4, it would end up as 1, 2, 4, 3. But all the data is in the right
place. Does anyone know what would cause this and how it can be prevented?
weights in the designer. Also, I have specified a DataPropertyName for each
column. I programmatically create a BindingSource to hold a set of objects
that I want to display in the DataGridView. I then assign the BindingSource
as the DataSource of the grid view.
The binding works ok and the data displays in the grid view. However, it
will randomly (?) rearrange a column in the grid view. So if my columns were
1, 2, 3, 4, it would end up as 1, 2, 4, 3. But all the data is in the right
place. Does anyone know what would cause this and how it can be prevented?