DataGridView automatically generates columns

前端 未结 5 2064
没有蜡笔的小新
没有蜡笔的小新 2021-01-17 14:57

On my Windows Form I have a DataGridView component, which is bound to a BindingSource. The BindingSource is an object datasource to an EntityFramework object.

Some t

5条回答
  •  猫巷女王i
    2021-01-17 15:31

    I actually don't know when this happens, but I tend to create all the columns manually. I create the columns in the designer and set the AutoGenerateColumns property to false in my code.

提交回复
热议问题