如何防止自动选择DataGrid中的第一行? [英] How to Prevent Auto Selecting First Row in a DataGrid?

查看:68
本文介绍了如何防止自动选择DataGrid中的第一行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何防止DataGrid/Listbox的这种自动选择"行为?我找不到用于"Silverlight Datagrid"的解决方案,但该技术对我不起作用.  

How do we prevent this 'auto-select' behavior of DataGrid / Listbox?  I found few solutions for 'Silverlight Datagrid's but that technique didn't work for me.  

 

此外,在30多个屏幕中,我的屏幕的列表框控件之一不执行此自动选择"行为.而且我不知道此屏幕与其他屏幕之间有什么区别.

Also, out of 30+  screens, somehow one of my screen's Listbox control doesn't do this 'auto-select' behavior. And I don't know whats the difference between this screen with others.

 

有什么想法吗?

推荐答案

嗨!

例如,当我有功能区按钮并且我希望根据列表中所选项目的值禁用它时,我注意到了类似的行为,当屏幕加载时,它在列表中选择了列表中的第一个项目,然后取消了选择.结束,我改变了那个按钮的方式 有效,现在-让我们称其为精细" ..希望对您有所帮助!

i noticed similar behavior when i, for example, have ribbon button and i want for it to be disabled depending of value of selected item in list, when screen loads, it selects first item in list, and then unselect, at the end i changed the way how that button works and now it's - let's call it "fine".. hope it helps!

Kivito


这篇关于如何防止自动选择DataGrid中的第一行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆