I have an application which has a form in a Master-Detail structure.
The detail portion consists of a tab control with 4 tabs.
Three of the tabs have a datagridview bound control. No problem with those.
The fourth tab contains two datagridview controls (dgvP and dgvEP) also in a master-detail configuration.
The datagridview control dgvEP (detail) is turned on/off by checking/unchecking a column (dgvcolLl) on the dgvP (master) datagridview control of that tab.
The column dgvcol has a display index of 4 at design time, either from VS designer or directly by coding it.
When I build the project the dgvcolLl is moved to DisplayIndex = 0
I have read many blogs in the subject and the AutogenerateColumns property set to False during the form loading did not help, nor setting the DisplayIndex property for that column to the proper order.
I would appreciate very much your assistance.