如何在WPF中绑定到DataGrid [英] How to bind to DataGrid in WPF

查看:73
本文介绍了如何在WPF中绑定到DataGrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图理解但失败了.在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆