在运行时从TablePanel布局中删除行. [英] Remove rows from TablePanel Layout at run time..

查看:74
本文介绍了在运行时从TablePanel布局中删除行.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的应用程序中使用TablePanelLayout,并且我想根据情况在运行时设置其行数..
给我任何建议plz

i am using TablePanelLayout in my application and i want to set its row quantity at run time according to situation..
give me any sugestion plz

推荐答案

您可以尝试将TableLayoutPanel.RowCount属性设置为适合您需要的值.

如果减少行数,请不要忘记事先从TableLayoutPanel中删除子控件.否则,TableLayoutPanel可能会拒绝删除行以保留其子级.
You could try setting the TableLayoutPanel.RowCount property to a value that suits your needs.

If decreasing row count, don''t forget to remove child controls from TableLayoutPanel in advance. Otherwise TableLayoutPanel could refuse to delete rows in order to preserve its children.


这篇关于在运行时从TablePanel布局中删除行.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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