I need a custom DataGridView that always has a checkbox column as first column.
I know how to achieve this at runtime. Any chance to display the column in the designer?
When added in the constructor it is being displayed in the designer, but you can simply alter/remove it in the Columns collection editor. Can I prevent that?
ComponentChangingevent of theIComponentChangeService, then you are notified that your Column has been removed, and you can add it back, then throw an Exception. The problem is that you need a custom Designer for that, but - as usual - you cannot derive it from theDataGridViewDesigner, since it's internal. You CAN add your own Designer, but you'd have to reimplement all the features that go missing (as the Designer Verbs, handling DataSource changes etc. <- if you care about them)