Hi, I hope you can help me / give me some hints
What I'm intending to do:
I'm implementing my own GUI-Designer and therefore I need a Table/Grid-Control.
To be more specific:
I want to implement a custom Table/Grid-Control, where I can add a user-defined amount of cells and columns. This Control is in a way comparable to the TableLayoutPanel, where every Cell includes a Label-Control. Every single cell should be clickable (in DesignMode) and have their own properties. In addition every single cell should be able to switch between simple Textfield, Radiobutton, Checkbox.
What I have done so far:
I have implemented my own control ("Table") which extends the TableLayoutPanel, where every Cell gets filled with a custom Label-Control. Furthermore I coded my own Designer (extends ParentControlDesigner) to get the Glyph-Functionality for Resizing Cells etc.
This works fine for very small Tables (e.g. 3x5), but the performace for large Tables (20x50) is really awful. I think the reason is, that the TableLayoutPanel is containing that much Labels. The VisualStudio internal Designer has the same (even slower) problems when creating a large TableLayoutPanel and fill every cell with a panel. It's nearly unusable when resizing the Control.
I have deactivated the refresh of my propertygrid already, but still too slow. In my opinion the performace-lack is due to the resize events of every single lable when Resizing the whole table.
Are there better approaches to my problem? Is there a better way to implement a simple but big table/grid where the user is able to modify the properties for each single cell at design time?
Thanks a lot in advance for any hints