0

我在 wpf 扩展工具包数据网格中有一个非常奇怪的问题。

如果我使用普通绑定,一切正常:

<xcdg:DataGridControl ItemsSource="{Binding DbTags.Local}"/>

但在虚拟化模式下,文本是不可见的,但行是存在的。

<Grid.Resources>
    <xcdg:DataGridVirtualizingQueryableCollectionViewSource x:Key="QueryableViewSource" QueryableSource="{Binding Path=DbTags}"/>
</Grid.Resources>

<xcdg:DataGridControl ItemsSource="{Binding Source={StaticResource QueryableViewSource}}"/> 

屏幕

感谢您的帮助

4

1 回答 1

0

这很奇怪,但在排序“OrderBy”或“OrderByDescending”时都可以正常工作。

如果我在没有排序或其他查询的情况下将 QueryableSource 设置为 DbSet,则会隐藏文本。

public IQueryable<DB.Tag> DbTags
        {
            get
            {
                return _localTagsContext.Tags.OrderByDescending(x =>x.Num);
            }
        }
于 2015-12-18T14:30:23.340 回答