I made a form with a datagrid called MyDG. The datagrid has a typed dataset
as datasource (MyDS).
I put the following code in the load event of the form to hide the id column:
MyDS.MasterTable.IDColumn.ColumnMapping = MappingType.Hidden
Strangely, when the datagrid appears for the first time, the id column is
visible, then, when I expand a row, click to visualize then details and click
in the back button to see the master again, the id column is correctly hidden.