如何在动态创建的rdlc文件上创建多个文本框? [英] How do I create multiple textboxes on an dynamically created rdlc file?
问题描述
我的XML表中有4行。我需要创建4个带有这些行值的文本框。
我正在从动态生成RDLC - 中获取帮助.com /> ReportViewer教程 [ ^ ]
I have 4 rows in my XML table. I need to create 4 textboxes with values from these rows.
I am taking help from Generate RDLC dynamically - Table of ReportViewer Tutorial[^]
推荐答案
TextBox() textBoxes = new TextBox();
textboxes.Id =bla bla;
这是你创建一个新文本框的方式,
WPF中的instatance - 我们可以像上面的代码一样创建一个文本框,然后将它们创建到画布上。
canvasname .add(textBoxes);
我们可以使用循环添加任意数量的文本框并将其添加到UI中。
textboxes.Id = "bla bla";
This is how u create a new text box,
for instatance in WPF - we can create a textbox like the above code and them to a canvas.
canvasname.add(textBoxes );
Like wise we can add any number of text boxes using loops and add them to the UI.
这篇关于如何在动态创建的rdlc文件上创建多个文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!