如何删除Wpf数据网格中的默认行 [英] How to Remove Default Row In Wpf data Grid
本文介绍了如何删除Wpf数据网格中的默认行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
比提前的ks shashank
解决方案
这是新条目的行。如果您不希望让用户创建新的条目,或者您是否从代码处理这些条目,例如使用添加按钮,禁用 CanUserAddRows
-option。
; DataGrid CanUserAddRows =False/>
I am using a WPF Data Grid. Whenever it is loaded there is a blank default row. How can I disable the default row from appearing like you can in the Windows Forms grid.
than ks in advance shashank
解决方案
This is the row for new entries. If you don't want let the user create new entries or if you handle this from code, e.g. with a add-button, disable the CanUserAddRows
-option.
<DataGrid CanUserAddRows="False" />
这篇关于如何删除Wpf数据网格中的默认行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文