如果我的View中有一个View,而View中有一个表示当前活动DataGridRow (例如,聚焦项或单击项)的Property,那么应该将我的属性绑定到SelectedItem或CurrentItem。假设我选择了将它绑定到SelectedItem,那么CurrentItem是干什么的?我是否应该将另一个属性绑定到CurrentItem
发布于 2015-05-22 12:44:10
看看这个:DataGrid CurrentItem != SelectedItem after reentry with tab-button
首先,用户选择一行,这使得数据显示以选定的方式显示该行(SelectedItem和CurrentItem包含所选对象)。然后将焦点放在另一个控件上。在这种状态下-选择仍然显示- SelectedItem仍然在那里,而CurrentItem是空的!
好文章:http://docs.telerik.com/devtools/silverlight/controls/radgridview/selection/selecteditem-currentitem.html
https://stackoverflow.com/questions/30395794
复制相似问题