禁用数据网格 silverlight 2.0 中的行

发布于 2024-09-30 14:24:13 字数 101 浏览 0 评论 0原文

我有一个数据网格,当用户尝试编辑一行时,我只想让该行可编辑,并禁用所有其他行。这可能吗?我尝试寻找 datagrid.rows 但没有。

请帮忙

谢谢 赛伊

I have a datagrid and when user tries to edit a row then I want to have only that row editable and all other rows disabled. Is this possible ? I tried looking for datagrid.rows but there is none.

Please help

Thanks
Sai

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淤浪 2024-10-07 14:24:13

查看 BeginEditEndEdit 事件此处。如果默认行为不会阻止您在当前编辑其他行时编辑其他行,您应该能够在这些事件中放置一些代码,以禁止在编辑模式下选择其他行。

Take a look at the BeginEdit and EndEdit events here. If the default behavior isn't preventing you from editing the other rows while you are currently editing one you should be able to place some code in those events to disable selecting other rows while in edit mode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文