TableRow st = new TableRow();
TableCell[] stu = new TableCell[] { new TableCell(), new TableCell(), new TableCell(), new TableCell(), new TableCell() };
stu[0].Text = cla;
stu[1].Text = cour;
stu[2].Text = tea;
stu[3].Text = room;
stu[4].Text = num;
for (int i = 0; i < 5; i++)
{
st.Cells.Add(stu[i]);
}
this.Table1.Rows.Add(st);
TableCell[] stu = new TableCell[] { new TableCell(), new TableCell(), new TableCell(), new TableCell(), new TableCell() };
stu[0].Text = cla;
stu[1].Text = cour;
stu[2].Text = tea;
stu[3].Text = room;
stu[4].Text = num;
for (int i = 0; i < 5; i++)
{
st.Cells.Add(stu[i]);
}
this.Table1.Rows.Add(st);
解决方案 »
- 在c#的winfrom开发当中,导出到excel问题
- C# sql 高手看下
- asp.net 怎样经过确认删除后才转向另一页?
- 请问VS2005种有没有Slider控件?
- treeview 不能及时刷新的问题
- openFileDialog的问题,我要被整疯了
- 请问各位高手,String格式的怎样转换成日期格式的,并将其变成ToShortDataString();具体如下:!!!
- 我想早C#里面写一个类,用户登陆的时候调用类里面的方法。
- 为什么我的代码不能取得DataGrid(WebForm)中处于编辑状态的单元格的值。
- 谁有pop收邮件解码程式。。
- 怎么将有规则的XML字符串转换成二维数组
- C#读取XML时会将原来的转义符自动转换问题(急)
public override ControlCollection Controls
{
get
{
EnsureChildControls();
return base.Controls;
}
}