如何在WPF中绑定到DataGrid [英] How to bind to DataGrid in WPF
问题描述
我试图理解但失败了.在WinForms中,我可以在datagridview中建立一些行.通过使用Application.DoEvents(不好用,但是可以用),我可以看到列表很大时它是如何建立的.我只想在WPF中有一些类似的东西.
I tried to understand but failed. In WinForms I can build up some rows in a datagridview. By using Application.DoEvents (not nice but works) I can see how it is building up also when the list is very huge. I just want some similar in WPF.
这是我的项目: http://www.goldengel.ch/temp/FileContent%20Replacer.zip
我已经发布了这个问题 WPF DataGrid行在代码后添加 但从未及时得到我需要的答案(一个星期). 请把解决方案在项目中的工作方式发送给我吗?
I already posted this question WPF DataGrid Row add in codebehind but never was answered in time I need it (one week). Please, can you send me the solution how it works in the project?
会很棒.
纳森拜尔
推荐答案
我希望您会发现Microsoft示例非常有用!
I hope you can find Microsoft sample very useful!
http://msdn.microsoft.com/en-us/library/ms752347.aspx
这是另一个
http ://www.i-programmer.info/programming/wpf-workings/620-using-the-wpf-net-40-datagrid-.html
这篇关于如何在WPF中绑定到DataGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!