Question

I currently develop an application, which reads a XML file containing some fields, which tell me what kind of controls etc. I want to (dynamically) load. Then it creates those controls and adds them into a TableLayoutPanel.

However since I do not need Columns (I'm pretty sure, that this won't change) and since dynamically removing/adding rows to a TableLayoutPanel is cumbersome, I'd like to know if there is a free or paid alternative to this panel.

Also: it bothers me, that I cannot set the BorderStyle of the whole panel (for some reason BorderStyle is not accessible).

So does anyone know an alternative (for Windows Forms)? In Java I'd probably use a GridBagLayout (which also is quite a bit more straightforward than the TableLayoutPanel), but it seems there's no good alternative to the TableLayoutPanel (or I haven't found any).

Thank you very much in advance. If you need any further information, please do not hesitate to ask.

Was it helpful?

Solution

Well you could use a DataGridView. And you can change the border styles and colors. Look at this article.

In addition, here is another grid control that looks simple enough for your needs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top