如何在TableLayoutPanel控件中合并单元格 [英] How to merge cells in TableLayoutPanel control

查看:1285
本文介绍了如何在TableLayoutPanel控件中合并单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用TableLayoutPanel控件。我的TableLayoutPanel控件上有5列和3行。我想合并所有3行的第一列,其余列应该是3行。怎么做?



Ex:

Column1 - > 1行

Column2 - > 3行分割

Column3 - > 3行拆分

Column4 - > 3行拆分

Column5 - > 3行拆分

Hi,
I am working on the TableLayoutPanel control. I have 5 Columns and 3 Rows on my TableLayoutPanel control. I want to merge 1st Column of all 3 rows, rest of the columns should be in with 3 rows. How to do that?

Ex:
Column1 -> 1 Row
Column2 -> 3 Rows split
Column3 -> 3 Rows split
Column4 -> 3 Rows split
Column5 -> 3 Rows split

推荐答案

您需要使用RowSpan和ColumnSpan属性,请查看以下文档以获取更多信息

如何:在TableLayoutPanel控件中跨越行和列 [ ^ ]
you need to use RowSpan and ColumnSpan properties, check below documentation for more information
How to: Span Rows and Columns in a TableLayoutPanel Control[^]


这篇关于如何在TableLayoutPanel控件中合并单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆