There seems to be no CellBorderStyle property for the TableLayoutPanel control.
In general, all controls do not have a BorderWidth property.
The cell borders should be visible in the designer. If not, it’s a bug. You’d like the visible in debug mode at runtime? At runtime it may be difficult since we don’t have the html created for the grid. Controls are all positioned absolutely and there is no container other than the panel itself. The only way to do that would be to put the controls in a panel and the panel (or group box) docked/fill in the cell. The panel adds the possibility to have the border, but also to have a title (see ShowHeader and HeaderPosition) in any of the four sides.
Also, look at the FlowLayoutPanel, we added the FillWeight property and enhanced the AutoSize to grow vertically. FillWeight, together with MinSize and MaxSize are great to have controls fill he row proportionally and wrap when necessary.
Thanks for your answer.
I use the TableLayoutPanel to create my forms. I define a TableLayoutPanel and then I “inject” controls/labels in its cells. In that way I can create forms programmaticaly without having to worry whether the controls are aligned and so on. So, I usually had the cell borders showing while I develop and then have them disappear in production. I mean, I agree I don’t need the cell borders in the final product, but it is useful for development. It would be a nice enhancement if it is something easy to do, but it’s up to you of course to decide.
All the best,
The TableLayoutPanel has the BorderStyle for the entire panel. Internally, the cells, are only a layout logic group, they are not rendered on the client. You can place a panel inside a cell, or set the border style of the control in the cell. Child controls can span multiple cells (see the RowSpan and ColSpan properties added to all child controls).
The BorderStyle, for the controls that have it, defines the name of the style: none, solid, dotted, dashed and double. However, the way it’s rendered is entirely defined in the theme. You can set, or override, the width, color and style of the border by setting the styles associated to a state in the theme. Each setting is a group comprised of (top, right, bottom, left).
For example, the BorderStyle.Solid for the editable controls in the material.theme is rendered only as the bottom border.
You can also override only a specific appearance without having to create a whole new theme by adding a theme mixin. Say, for example, that you want the border of all Wisej.Web.Panel controls (you can even theme a specific panel of you change the appearance key) to be 2px instead of 1px, add under /Themes: