Hello,
I have one UnboundField that cover all columns of my xamDataGrid.
I have build server that report errors and warnings. And some warnings come from this old field.
I try to replace it like :
<dataPresenter:Field x:Name="Header" AllowEdit="False" AllowFixing="No" Column="2" Label="Azimuth" Row="0"> <dataPresenter:Field.Settings> <dataPresenter:FieldSettings CellContentAlignment="LabelOnly" LabelTextAlignment="Center" /> </dataPresenter:Field.Settings> </dataPresenter:Field>
<dataPresenter:Field Name="Header2" AllowEdit="False" AllowFixing="No" Column="2" Row="0"> <dataPresenter:Field.Settings> <dataPresenter:FieldSettings AllowRecordFiltering="False"> <dataPresenter:FieldSettings.LabelPresenterStyle> <Style BasedOn="{StaticResource LabelPresenterStyle}" TargetType="{x:Type dataPresenter:LabelPresenter}"> <Setter Property="ContentTemplate"> <Setter.Value> <DataTemplate> <TextBlock Text="Text" /> </DataTemplate> </Setter.Value> </Setter> </Style> </dataPresenter:FieldSettings.LabelPresenterStyle> </dataPresenter:FieldSettings> </dataPresenter:Field.Settings> </dataPresenter:Field>
I want to display "Text" wihout any values link to this string.
Could you help me ?
Regards
Hello teamtim,
Thank you for your post!
From your description, it seems like you are looking for the warning-less definition of an UnboundField in the XamDataGrid with the newer versions of Infragistics for WPF. If this is correct, I would recommend that you take a look at this online documentation article about the new way to configure Unbound Fields in the XamDataGrid: http://help.infragistics.com/doc/WPF/2015.1/CLR4.0/?page=xamDataPresenter_Add_Unbound_Fields_to_a_DataPresenter_Control.html.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support