0

这是我的dataGrid xaml:

<c1datagrid:C1DataGrid x:Name="taskExecutionDetailC1DataGrid"
                               Grid.Row="1" Grid.Column="0"
                               SelectionMode="SingleCell"
                               ItemsSource="{Binding ElementName=taskExecutionDetailDomainDataSource, Path=Data}"
                               AutoGenerateColumns="True"
                               CanUserFilter="True" c1:C1NagScreen.Nag="True" />

但是,它没有在悬停标题时显示过滤器图标(下拉箭头)。

我已经引用了 C1.Silverlight。DataGrid.Filters dll。

请帮忙。我在这个网格上花了很多时间,现在不想离开它。

4

1 回答 1

1

看来您正在使用 WCF RIA 服务。当您将 C1DataGrid 绑定到 RIA 服务 DomainDataSource 时,您将失去内置过滤功能,因为 RIA 服务使用与标准 CollectionView 不同的过滤方法。要保留此功能,您需要添加 C1RiaAdapter 以将过滤信息转换为 RIA。查看在线文档: wcf ria services databinding

这里还有一个带有过滤示例的示例: C1DataGrid RIA

于 2011-12-14T15:34:35.290 回答