gpt4 book ai didi

c# - Wpf DataGrid 添加新行

转载 作者:太空狗 更新时间:2023-10-29 23:50:51 26 4
gpt4 key购买 nike

在底部的 Wpf DataGrid 中,有一个用于添加新行的“空白新行”。 enter image description here

当我开始添加新行(输入“空白新行”)时,空白新行消失了 enter image description here
因此,为了开始添加新行,我需要 Tab Of(lost focus) 来自当前行。

如何在添加新行时让“空新行”出现在底部?

最佳答案

将 Datagrid 的 CanUserAddRows 属性设置为 True

关于c# - Wpf DataGrid 添加新行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28361854/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com