Devexpress控件中gridcontrol Drag a column header here to group by that column 更换
由于需要将gridControl本地化,所以需要将Devexpress控件中gridcontrol Drag a column header here to group by that column 中这句话变为其他语言或者其他文字表述。
1 <dxg:GridControl x:Name="grid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" AllowLiveDataShaping="False" ItemsSource="{Binding Data}" AutoExpandAllGroups="True" ShowBorder="False" ShowLoadingPanel="True" > 2 <dxg:GridControl.View> 3 <dxg:TableView Name="tableView1" ShowTotalSummary="True"> 4 <dxg:TableView.RuntimeLocalizationStrings> 5 <dxg:GridRuntimeStringCollection> 6 <dxg:RuntimeStringIdInfo Id="GridGroupPanelText" Value="Group Panel"/> 7 <dxg:RuntimeStringIdInfo Id="ColumnChooserCaption" Value="Hidden Columns"/> 8 </dxg:GridRuntimeStringCollection> 9 </dxg:TableView.RuntimeLocalizationStrings> 10 </dxg:TableView> 11 </dxg:GridControl.View> 12 <dxg:GridControl.Columns> 13 <dxg:GridColumn FieldName="OID" Header="OID" MinWidth="50" Width="50" ReadOnly="true" Style="{Binding Converter={StaticResource TestConvertBase}, ElementName=dXRibbonWindow, Mode=OneWay}" /> 14 <dxg:GridColumn x:Name="colPriority" FieldName="Priority" SortMode="Value" MinWidth="40" Width="40" ColumnFilterMode="DisplayText" /> 15 <dxg:GridColumn FieldName="From" MinWidth="100" Width="100" /> 16 <dxg:GridColumn FieldName="ToId" Header="To" MinWidth="100" Width="100" AutoFilterCondition="Equals"> 17 <dxg:GridColumn.EditSettings> 18 <dxe:ComboBoxEditSettings IsTextEditable="False" ValueMember="OID" DisplayMember="Name" /> 19 </dxg:GridColumn.EditSettings> 20 </dxg:GridColumn> 21 <dxg:GridColumn FieldName="Sent" Header="Sent" MinWidth="100" Width="100" GroupInterval="DateRange" AutoFilterCondition="Equals"> 22 <dxg:GridColumn.EditSettings> 23 <dxe:DateEditSettings DisplayFormat="d" /> 24 </dxg:GridColumn.EditSettings> 25 </dxg:GridColumn> 26 <dxg:GridColumn x:Name="colHoursActive" FieldName="HoursActive" MinWidth="70" Width="70" AutoFilterCondition="Like" /> 27 <dxg:GridColumn x:Name="colHasAttachment" FieldName="HasAttachment" MinWidth="50" Width="50" AutoFilterCondition="Equals" /> 28 <dxg:GridColumn/> 29 <dxg:GridColumn/> 30 <dxg:GridColumn/> 31 <dxg:GridColumn/> 32 <dxg:GridColumn/> 33 </dxg:GridControl.Columns> 34 </dxg:GridControl>
以上代码为整体gridControl
1 <dxg:GridControl.View> 2 <dxg:TableView Name="tableView1" ShowTotalSummary="True"> 3 <dxg:TableView.RuntimeLocalizationStrings> 4 <dxg:GridRuntimeStringCollection> 5 <dxg:RuntimeStringIdInfo Id="GridGroupPanelText" Value="Group Panel"/> 6 <dxg:RuntimeStringIdInfo Id="ColumnChooserCaption" Value="Hidden Columns"/> 7 </dxg:GridRuntimeStringCollection> 8 </dxg:TableView.RuntimeLocalizationStrings> 9 </dxg:TableView> 10 </dxg:GridControl.View>
这样就可以将Drag a column header here to group by that column换为Group Panel了。
类似其他的都可以这么换,有待验证。
其他参考文档地址:http://documentation.devexpress.com