Sometimes Data grid view columns swap observed

  • Thread starter Thread starter Subbu J9
  • Start date Start date
S

Subbu J9

Guest
I have a Datatable with 10 columns and displaying in datagridview with 5 columns with set displayindex as 0 to 4

Sometimes observed that last 2 columns are swaped.

I am handling the below code for every data bind

dgvContacts.Datasource = null;

dgvContacts.Datasource =dtContacts

SetDisplayIndex();

Continue reading...
 
Back
Top