Questions tagged «silverlight-2.0»

8
以编程方式将列和行添加到WPF Datagrid
我是WPF的新手。我只想知道我们应该如何以编程方式向WPF中的DataGrid添加列和行。我们过去在Windows窗体中执行此操作的方式。创建表的列和行,并将其绑定到DataGrid。 我相信WPF DataGrid与ASP.net和Windows表单中使用的有点不同(如果我错了,请纠正我)。 我需要在DataGrid中绘制行和列的数量,以便用户可以编辑单元格中的数据。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.