右键单击网格行
问题是,每当右键单击网格的行时,所选项目为空。右键单击任何行时如何选择网格的行?
谢谢 贾马尔
problem is , that whenever the grid's row is right clicked the selected item is null.how do i make a the grid's row selected when any row was right clicked?
thanks
Jamal
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为解决方案可能有问题。每次加载一行时,它都会添加一个事件处理程序,因此,如果该行被重复使用,它会累积事件处理程序。我建议在卸载行时删除事件处理程序。这是我建议的代码:
I think the solution may have a problem. Every time a row is loaded it will add an event handler, so if the row is ever reused it can accumulate event handlers. I would recommend removing the event handler when the row is unloaded. Here's my suggested code:
这是解决方案
http://forums.silverlight.net/forums/t/171088。 ASPX
here is the solution
http://forums.silverlight.net/forums/t/171088.aspx