我可以在使用Web时在C#中使用TableRow和TableCell类 形式。使用Windows编程时无法使用相同的功能 形式。我有下面的代码,适用于Web表单,但是 Windows窗体返回错误。如何让它运行Windows 表格要求任何.dll以窗口形式工作。
TableRow tr = new TableRow();
TableRow trBreaks = new TableRow();
TableRow tr1 = new TableRow();
TableRow tr2 = new TableRow();
TableRow tr3 = new TableRow();
TableRow tr4 = new TableRow();
TableRow tr5 = new TableRow();
TableRow trBreak = new TableRow();
TableRow tr6 = new TableRow();
TableRow tr7 = new TableRow();
TableCell td1 = new TableCell();
TableCell tdBreaks = new TableCell();
TableCell td11 = new TableCell();
TableCell td12 = new TableCell();
TableCell td21 = new TableCell();
TableCell td22 = new TableCell();
TableCell td31 = new TableCell();
TableCell td32 = new TableCell();
TableCell td41 = new TableCell();
TableCell td42 = new TableCell();
TableCell td51 = new TableCell();
TableCell td52 = new TableCell();
TableCell tdBreak1 = new TableCell();
TableCell td6 = new TableCell();
TableCell td7 = new TableCell();
答案 0 :(得分:0)