I am currently using DesignSurface to create a custom designer. I want to enable dragging the column widths of a DataGridView on the designer page and record the changes, similar to how it works at runtime. How can I achieve this?
I used IDesignerHost to create a root component for the designer. I created the DataGridView using the approach:
IComponent newComp = host.CreateComponent(typeof(TControl));
Now I want to enable dragging column widths on the designer page.