在WPF中具有DataGridView是否可行 [英] is it poosible to have DataGridView in WPF
本文介绍了在WPF中具有DataGridView是否可行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能在WPF中使用DataGridView而不是DataGrid
预先感谢
is it poosible to have DataGridView in WPF rather than DataGrid
thanks in advance
推荐答案
可以,但是您必须将其容纳在WindowsFormHost中,我不建议这样做.基本上,这是一个承载WinForms控件的填充控件,因此位于WPF UI的顶部.它可能会产生一些非常不希望的影响.
我真的会尝试使用DataGrid,因为它具有所有相同的功能.
You can, but you''ll have to house it in a WindowsFormHost, which I would not recommend. That''s basically a shim control that will host WinForms controls and as such sits on top of the WPF UI. It can have some very undesired affects.
I would really try and get to grips with the DataGrid as that has all the same functionality.
这篇关于在WPF中具有DataGridView是否可行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文