大家好!我有一个System.Web.UI.WebControls.Table,单元格(控件)的宽度(默认为20%).我想改变这个百分比 - > 40%/ 20%/ 20%/ 10%/ 10%
我想要关注:
如何在此单元格(控件)上设置不同的宽度?
这是我的代码:
Table myTbl = new Table();
TableRow tRow1 = new TableRow();
//Row1 Cells Controls
TextBox txt11 = new TextBox();
txt11.ID = "txtDest11";
txt11.Height = 19;
//txt11.Width = Unit.Percentage(40);
TextBox txt12 = new TextBox();
txt12.ID = "txtKmInCity12";
txt12.Height = 19;
TextBox txt13 = new TextBox();
txt13.ID = "txtKmOutCity13";
txt13.Height = 19;
DateTimeControl dt11 = new DateTimeControl();
dt11.DateOnly = true;
dt11.ShowWeekNumber = true;
dt11.LocaleId = 1026;
DateTimeControl dt12 …Run Code Online (Sandbox Code Playgroud) 我有一个显示/隐藏行的动态表.
在这个变量中我跳过第一行,但我想跳过最后n行......
var allVisibleRows1 = myTbl.Rows.Cast<TableRow>().Where(row => row.Visible).Skip(1);
Run Code Online (Sandbox Code Playgroud)
(跳过1) 2 3 4 5 (跳过6) (跳过7)
这该怎么做?