我有一個Xceed Datagrid,它的ItemsSource
是在XAML中定義。每當網格更新時,只有焦點所在的行不會顯示更新的值(恢復爲原始值),但所有其他行都會更新。如果我直接將網格綁定到ViewModel
中的Collection,那麼一切正常。問題是,只有當CollectionViewSource
進入圖片。任何幫助表示讚賞。Xceed datagrid中的焦點行沒有得到更新
0
A
回答
-2
我得到了解決辦法... grid.CurrentItem = NULL
1
你能嘗試使用DataGridCollectionViewSource
代替CollectionViewSource
的。通過此,你將收穫的DataGrid
這樣的好處,內置的篩選,排序,分組等的例子從他們的文檔:
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid">
<Grid.Resources>
<xcdg:DataGridCollectionViewSource x:Key="cvs_orders"
Source="{Binding Source={x:Static Application.Current},
Path=Orders}"/>
</Grid.Resources>
<xcdg:DataGridControl x:Name="OrdersGrid"
ItemsSource="{Binding Source={StaticResource cvs_orders}}"/>
</Grid>
相關問題
- 1. 的DataGridView(焦點或更新),沒有得到正確的數據
- 2. WPF DataGrid CellEditEnding - 數據集沒有更新直到行丟失焦點
- 3. Datagrid沒有更新WPF MVVM中的行
- 4. WPF DataGrid ItemsSource沒有得到更新源更新
- 5. 去除Xceed DataGrid中
- 6. Datagrid中沒有更新
- 7. WPF MVVM databing到DataGrid中沒有更新
- 8. textbox沒有得到焦點使用jQuery的焦點
- 9. Tab創建新行並將焦點放在DataGrid中的新行
- 10. iOS UITextView幾乎沒有得到焦點
- 11. DataGrid的DataGridColumn沒有更新
- 12. 禁用WPF DataGrid行中的焦點
- 13. 如何更改Xceed Datagrid的CellErrorStyle?
- 14. Android行沒有得到更新
- 15. Flex Datagrid沒有更新
- 16. Datagrid RowDetails沒有更新
- 17. DataGrid中的焦點問題
- 18. Xceed DataGrid QueryableSource和DbContext
- 19. Xceed DataGrid SelectedItem問題
- 20. visual basic 6.0中的datagrid沒有更新
- 21. Xceed Datagrid不會綁定到Xceed控件的DataTemplate
- 22. JTable沒有得到更新
- 23. ComputedProperty沒有得到更新
- 24. listview沒有得到更新
- 25. Listview沒有得到更新
- 26. JCheckBox沒有得到更新
- 27. ListBox沒有得到更新
- 28. UITableViewCell沒有得到更新
- 29. javax.net.ssl.trustStore沒有得到更新
- 30. UITableViewCell中的UIImageView沒有得到更新
考慮使用我的解決方案作爲替代。更好地使用正確的解決方案,而不是破解 –
誰投了我的答案? –