我想问一下,使用C1DataGrid自己的表头过滤
我不管是用搜狗输入法,QQ输入法,还是手心输入法,都无法输入中文,不知道为什么,
我的XAML代码
- <Custom:C1DataGrid x:Name="grid1"
- CanUserFreezeColumns="None"
- IsReadOnly="True"
- RowHeight="25"
- AlternatingRowBackground="White"
- GridLinesVisibility="All"
- SelectionMode="SingleRow"
- ColumnHeaderClickAction="Sort"
- AutoGenerateColumns="False"
- Grid.Row="1"
- ItemsSource="{Binding Path=LsBoards,Mode=TwoWay}" RowHeaderWidth="0" FontSize="18" MinColumnWidth="5" FontFamily="SimSun" ColumnHeaderHeight="30" >
- <Custom:C1DataGrid.HeaderBackground>
- <SolidColorBrush Color="{DynamicResource Color1}"/>
- </Custom:C1DataGrid.HeaderBackground>
- <Custom:C1DataGrid.Columns>
- <Custom:DataGridTextColumn Header="包装类型" Binding="{Binding Output_PanelRoom, Mode=TwoWay}" SortMemberPath="Output_PanelRoom" FilterMemberPath="Output_PanelRoom" MinWidth="70" />
- <Custom:DataGridTextColumn Header="打包时间" Binding="{Binding Output_PanelUnit, Mode=TwoWay}" SortMemberPath="Output_PanelUnit" FilterMemberPath="Output_PanelUnit" MinWidth="70" />
- <Custom:DataGridTextColumn Header="流水号" Binding="{Binding Output_PanelBarCode, Mode=TwoWay}" SortMemberPath="Output_PanelBarCode" FilterMemberPath="Output_PanelBarCode" MinWidth="70" />
- </Custom:C1DataGrid.Columns>
- </Custom:C1DataGrid>
复制代码 |